Advanced search  

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]

Pages: [1]   Go Down

Author Topic: The image you have uploaded is corrupted or can't be handled by the GD library  (Read 3858 times)

0 Members and 1 Guest are viewing this topic.

webguynj

  • Coppermine newbie
  • Offline Offline
  • Posts: 3

I did search online and I verified a lot of settings before posting this.  I believe I am getting this error based on file size but I am not sure it is because of a memory limitation, here is why.  All of the settings on the server seem to be correct for handling large images, but they only work when resized to about 1800x1200 (originals are 3008x2000).  The details of the configuration are below.

Two of the files were created with the same program but were different sizes.  Both were saved with PSP8 so the formats so the files should have been the same.   However, one succeeded and one failed (the smaller succeeded) leading me to think it is memory related.  

But Using the calulation presented in another thread (http://forum.coppermine-gallery.net/index.php?topic=5843.0) The memory for processing a full size image should be less than 18 MB (the server is configured for 40) so I should have enough.

Did I verify all of the settings needed?  Any help would be greatly appreciated.

Thanks

James

Details:
Settings on Coppermine:
  • Single file upload set on
  • Max file upload size set to 4096
  • Max image dimension set to 3008

Settings from PHPInfo()
Directive                        Local Value                            Master Value
memory_limit 40M40M
max_execution_time50000 50000
upload_max_filesize 20M 20M
post_max_size 8M 8M

GD Related Detals from PhPInfo()
  • GD Support  enabled  
  • GD Version  2.0 or higher

File information
SourceDimenstionSizeUploaded?
Nikon Capture3008x2000170KFailed
PSP83008x2000740KFailed
PSP81805x1200290KSUCCESS

« Last Edit: June 27, 2004, 07:36:47 pm by webguynj »
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -

Interesting.  Use PS8 to greate an image file with the high resolution, but with a very low file size. (i.e. a 3008 x 2000 solid red rectangle saved as a PNG file.) Try uploading it and see what happens.
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

webguynj

  • Coppermine newbie
  • Offline Offline
  • Posts: 3

Interesting.  Use PS8 to greate an image file with the high resolution, but with a very low file size. (i.e. a 3008 x 2000 solid red rectangle saved as a PNG file.) Try uploading it and see what happens.


I did this this morning with the following result

Pure RED (255,0,0) image saved as JPG & PNG formats in the following sizes

                             JPG            PNG
3008x2000           FAILED       FAILED
2256x1500           FAILED       FAILED
1805x1200         SUCCESS      FAILED


Does this help?
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -

What were the filesizes on those images?
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

webguynj

  • Coppermine newbie
  • Offline Offline
  • Posts: 3

What were the filesizes on those images?
                             JPG            PNG
3008x2000             93K            22K
2256x1500             53K            13K
1805x1200             34K              9K
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 16 queries.