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: [Solved]: Problem uploading only some PNGs  (Read 2623 times)

0 Members and 1 Guest are viewing this topic.

Mr. Rogers

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
[Solved]: Problem uploading only some PNGs
« on: May 27, 2008, 06:00:13 pm »

I was given about 20 PNG files to add to our gallery and out of the 20, three refuse to upload whether I try in batch mode or via the upload link. When I try in batch mode, the result shows as "click for details or to reload" and if I click the link, my browser prompts me to download the file addpic.php. If I try to upload any of these three images via the standard upload link, it says the upload was successful yet when I click the continue button, my browser prompts me to download upload.php. The other 17 PNG files work just fine. These three problem files aren't any larger in filesize or dimensions than any of the files that work fine. Any idea what the issue is?
« Last Edit: June 04, 2008, 10:39:50 pm by just_some_guy »
Logged

Riox

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 55
Re: Problem uploading only some PNGs
« Reply #1 on: May 27, 2008, 06:07:55 pm »

CPG Version and link to one of the trouble PNGs please ^^
Logged

Mr. Rogers

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Problem uploading only some PNGs
« Reply #2 on: May 27, 2008, 06:26:34 pm »

Sorry, it's an internal only site.

Here's some more weirdness. My PHP upload settings are 45M and my coppermine file upload settings are the same. In my coppermine config, my "max width or height for uploaded pictures" is set to 4096. All of the PNGs are smaller than 2M and none of the files have a width or height greater than 2500px. I took one of the problematic PNGs and shrank it down just a bit and it uploaded fine. What I don't understand is why the problem occurs the way the original file is. This one example is a 51K PNG, 2485 pixels wide x 1539 pixels tall.
Logged

Riox

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 55
Re: Problem uploading only some PNGs
« Reply #3 on: June 01, 2008, 04:18:08 am »

oh my...

Quote
My PHP upload settings are 45M
We are talking /etc/php.ini here not .htaccess ?

you need to fix post_max_size and memory_limit to

Quote
This one example is a 51K PNG,

If its a .PNG and not a .png file I'd say you have a multilayer file ... possible with some Adobe Fireworks or Photoshop Extension. I don't think GD or ImageMagic can handle these files (not tested)
Logged

Mr. Rogers

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Problem uploading only some PNGs
« Reply #4 on: June 04, 2008, 03:33:07 pm »

oh my?? I don't understand, what's wrong with the upload settings? I have a 45 MB upload limit and the image was 51 KB.

As for the multilayer PNG issue I'll see if I can open it up and test. For some reason my version of Photoshop chokes on PNG files.
Logged

Mr. Rogers

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Problem uploading only some PNGs
« Reply #5 on: June 04, 2008, 03:45:03 pm »

Again today I received another PNG that gave me the same error. I opened it in Illustrator and exported it as a PNG with high resolution (300ppi) and it still choked coppermine. If I exported it as a PNG with medium resolution (150ppi) coppermine happily imports it. I'm stuck as to why the higher res PNG chokes coppermine when my settings allow for very large files with width and height dimensions larger than anything I'm giving it.
Logged

Mr. Rogers

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: Problem uploading only some PNGs
« Reply #6 on: June 04, 2008, 10:26:04 pm »

Problem solved  :) Apparently PHP takes up far more resources when processing PNG files so I needed to bump my memory limit up pretty far for it to hanlde the large PNG files. After that, coppermine handles them without a problem.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.