Aleksander Machniak
2014-10-24 2979df5529f987e548d9f970d6e7731f3affa965
Call exif_read_data() only on JPEG images
1 files modified
2 ■■■ changed files
program/lib/Roundcube/rcube_image.php 2 ●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_image.php
@@ -229,7 +229,7 @@
                $image = $new_image;
                // fix rotation of image if EXIF data exists and specifies rotation (GD strips the EXIF data)
                if ($this->image_file && function_exists('exif_read_data')) {
                if ($this->image_file && $type == 'jpg' && function_exists('exif_read_data')) {
                    $exif = exif_read_data($this->image_file);
                    if ($exif && $exif['Orientation']) {
                        switch ($exif['Orientation']) {