The image you have uploaded is corrupted or can't be handled by the GD library The image you have uploaded is corrupted or can't be handled by the GD library
 

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

The image you have uploaded is corrupted or can't be handled by the GD library

Started by webguynj, June 27, 2004, 07:01:59 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

webguynj

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


hyperion

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.
"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://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

webguynj

Quote from: hyperion on June 28, 2004, 07:04:54 AM
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?

hyperion

"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://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

webguynj

Quote from: hyperion on June 28, 2004, 07:50:42 PM
What were the filesizes on those images?
JPG            PNG
3008x2000             93K            22K
2256x1500             53K            13K
1805x1200             34K              9K