diff options
Diffstat (limited to 'lib/ui.lib.php')
-rw-r--r-- | lib/ui.lib.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ui.lib.php b/lib/ui.lib.php index 2bed47c6..ec5a1b28 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -762,7 +762,7 @@ function img_resize($image,$size,$type){ /* First check for php-gd */ $info = gd_info(); - if ($type == 'jpg' AND !$info['JPG Support']) { + if ( ($type == 'jpg' OR $type == 'jpeg') AND !$info['JPG Support']) { return false; } elseif ($type == 'png' AND !$info['PNG Support']) { @@ -785,6 +785,7 @@ function img_resize($image,$size,$type){ // determine image type and send it to the client switch ($type) { case 'jpg': + case 'jpeg': imagejpeg($img,null,100); break; case 'gif': |