Re: gd Graphics Library Question (EXIF)
| From: | Mitch | Date: | Sat, 30 Apr 2011 02:32:34 +0000 |
| Subject: | Re: gd Graphics Library Question (EXIF) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312577@lists.php.net to get a copy of this message | ||
I was wondering about that. Since I am not actually hosting my ISP would have to have it loaded (or compiled into their PHP implementation), right?
I'll have to do some legwork with my ISP and ImageMagic
On 4/29/2011 9:26 AM, Stuart Dallas wrote:
On Friday, 29 April 2011 at 03:33, Mitch wrote: I have written a lightweight, easy to use photo album "system" inHTML/PHP/MySQL.In addition to the Photo Album side I have written a series of Admin Utilities to manage it with. One of the administrative utilities uploads photos from my local drive, resizes them to be more efficient on disk space, creates thumbnails and populates the database with as much "default" data as can be deduced. After all of this was written, I decided to see if I could pull EXIF data to supply some of the technical data for the DB. To my surprise, the only EXIF data in the JPEG files was data in the File, Computed and Comments sections. Why don't the gd utilities retain the original EXIF data? Is there any way to do so? I use the following gd utilities to resize and create the new JPEG image files: imagecreatefromjpeg imagesx imagesy imagercreatetruecolor imagecopyresized imagejpegThis is a known shortcoming of the GD library. You won't have that issue with ImageMagick: http://php.net/book.imagick -Stuart