Login   Register  
PHP Classes
elePHPant
Icontem

PHP 5.3.4 error in jpg files

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      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:2
Author:joao luis
Date:2011-02-10 15:25:34
Update:2011-03-04 14:04:04
 

  1. PHP 5.3.4 error in jpg files   Reply  
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  
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'