You are here: PHP GD and corrupted image « PHP Programming Language « IT news, forums, messages
PHP GD and corrupted image

Posted by fc on 04/12/06 12:59

Hallo,
I'm using GD library in my web application to manage (resize, creating
thumbnails etc.) images for a web site.
My script works fine for most images but I've got a problem with some
jpeg images, that are
not recognized as valid jpeg images: getimagesize returns false, while
using exif_read_data
I get a warning like: "Error reading from file: got=xB6F2(=46834) !=
itemlen-2=xF2A7(=62119)"

Opening the image with Gimp I actually get a warning message:
"Corrupt JPEG Data: 16 extraneous bytes before marker 0xdb"
Gimp is able to skip exif data and to correctly open the image.

I think that removing exif data I could read and resiz the image.
My question is: how can I skip exif data using php script as Gimp or
any other image viewer does?

thank you.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация