changes suggested by aleks

pull/252/head
brendan braybrook 10 years ago committed by Aleksander Machniak
parent 9cbdb6cd69
commit 7cf6524590

@ -206,7 +206,7 @@ class rcube_image
$image = $new_image;
// fix rotation of image if EXIF data exists and specifies rotation (GD strips the EXIF data)
if (file_exists($this->image_file) ) {
if ($this->image_file && function_exists(exif_read_data) ) {
$exif = exif_read_data($this->image_file);
if ($exif && $exif['Orientation']) {
switch($exif['Orientation']) {

Loading…
Cancel
Save