Gallery won't accept photos made with some mobile phones. Gallery won't accept photos made with some mobile phones.
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Gallery won't accept photos made with some mobile phones.

Started by linuxhata, September 10, 2005, 11:10:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

linuxhata

Warning: imagecreatefromjpeg(): 'albums/userpics/Image010.jpg' is not a valid JPEG file in /home/janigs/public_html/uzrdeli/include/picmgmt.inc.php on line 209

giving me error like this. The pictures is all OK, and can be opened on PC or posted into any another gallery without problem. This mostly occurs with photos taken by NOKIA handsets, resolution 640x480.



Nibbler

The error message is correct, the jpeg file is not valid.

[nibbler@localhost ~]$ identify sample.jpg
identify: Corrupt JPEG data: 175 extraneous bytes before marker 0xd9 `sample.jpg'.
sample.jpg JPEG 640x480 DirectClass 51kb 0.020u 0:01


That is enough for GD2 to be unable to process the image. I can however confirm that Imagemagick can handle the file correctly. Use that if it is available on your server.

artistsinhawaii

I opened your file on my PC and resaved it under a new name and it worked with GD2.  You might want to try that with your nokia pictures.  The original file did not work.

Dennis

Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

linuxhata

Ok, I'll try to switch to ImageMagick.

Opening file on PC and re-saving it is not good idea, because main plot of my gallery is to allow mobile users make direct upload from their devices to gallery.