PHP Classes

PHP 5.3.4 error in jpg files

Recommend this page to a friend!

      Image_Toolbox  >  All threads  >  PHP 5.3.4 error in jpg files  >  (Un) Subscribe thread alerts  
Subject:PHP 5.3.4 error in jpg files
Summary:jpg not supported
Messages:4
Author:joao luis
Date:2011-02-10 15:25:34
Update:2013-01-11 12:36:20
 

  1. PHP 5.3.4 error in jpg files   Reply   Report abuse  
Picture of joao luis joao luis - 2011-02-10 15:25:34
after alter for php 5.3.4 my script not support jpg files.

Fatal error: Image: Imagetype (jpg) not supported for reading. in /home/colegiob/public_html/adm/Image_Toolbox.class.php on line 444

  2. Re: PHP 5.3.4 error in jpg files   Reply   Report abuse  
Picture of Dirk Schmidtke Dirk Schmidtke - 2011-03-04 14:04:04 - In reply to message 1 from joao luis
Looks like as of version 5.3 PHP returns image/jpeg instead of image/jpg as MIME type. So - modify the entry for jpg files in $_types around line 99 of the Image_Toolbox script to:

'mime' => 'image/jpeg'

  3. Re: PHP 5.3.4 error in jpg files   Reply   Report abuse  
Picture of ????????? ????? ????????? ????? - 2012-09-19 05:59:47 - In reply to message 2 from Dirk Schmidtke

My PHP version is 5.3,i already have 'mime' => 'image/jpeg' in line 99 but still i m getting same error "Undefined index:JPG support" and "Fatal error: Image:Imagetype(jpg) not supported for reading". Can you tell me what is the problem in my Image_Toolbox script.

  4. Re: PHP 5.3.4 error in jpg files   Reply   Report abuse  
Picture of Bernd Schmitt Bernd Schmitt - 2013-01-11 12:36:20 - In reply to message 1 from joao luis
Line 186:
Change $gd_info['JPG Support']
in
$gd_info['JPEG Support']