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

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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.