Advanced search  

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

Pages: [1]   Go Down

Author Topic: Gallery won't accept photos made with some mobile phones.  (Read 3925 times)

0 Members and 1 Guest are viewing this topic.

linuxhata

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Gallery won't accept photos made with some mobile phones.
« on: September 10, 2005, 11:10:08 pm »

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.
Logged

Nibbler

  • Guest
Re: Gallery won't accept photos made with some mobile phones.
« Reply #1 on: September 10, 2005, 11:30:50 pm »

Can you post a sample picture ?
Logged

linuxhata

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: Gallery won't accept photos made with some mobile phones.
« Reply #2 on: September 11, 2005, 12:24:43 am »

Logged

Nibbler

  • Guest
Re: Gallery won't accept photos made with some mobile phones.
« Reply #3 on: September 11, 2005, 01:48:45 am »

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

Code: [Select]
[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.
Logged

artistsinhawaii

  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: Gallery won't accept photos made with some mobile phones.
« Reply #4 on: September 11, 2005, 02:27:55 am »

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

Logged
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

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: Gallery won't accept photos made with some mobile phones.
« Reply #5 on: September 11, 2005, 08:45:05 am »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 22 queries.