coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: Riox on January 11, 2009, 05:32:16 PM

Title: Broken GIF Animations after uploading/BatchAdd
Post by: Riox on January 11, 2009, 05:32:16 PM
I asked Stamm fist since I use his Modpack and found a little bug see: http://forum.coppermine-gallery.net/index.php/topic,56839.msg280740.html#msg280740

My Setup:
CPG 1.4.19 + Stamms Modpack - SMF 1.1.7 Brige
GD bundled (2.0.34 compatible)
GIF Read and Create Support

---

I used 1.4.10 for a long time and just did the security fixes by hand and GIF Animations worked finde, batch-add and phpupload.
Now on 1.4.19 all I get is the first frame ... I know that GD might not handle GIF Animations but why can't it keep his dirty hands from them?

I've also noticed that all images get forced through GD... is that some kind of protection against non image uploads like remoteshell.php.jpg ?

MD5 on my HDD
844dbab2ebebcf4bb0392fdd7adf45ba *SolarisMediaKit_Fake.jpg 1024x786x24b jpeg
and on the Server
2e5a93379a361ef81eba918624767d05 *SolarisMediaKit_Fake.jpg 1024x786x24b jpeg



Title: Re: Broken GIF Animations after uploading/BatchAdd
Post by: Joachim Müller on January 14, 2009, 09:02:52 AM
Sounds like you have been hacked. Impossible to say more, as you failed to post details, i.e. a link to your gallery.
Title: Re: Broken GIF Animations after uploading/BatchAdd
Post by: Riox on January 14, 2009, 07:48:59 PM
All files in use are true v1.4.19

Gallery URL: http://foxbox.cc/gallery/ (SFW)
login/pass: cpg/user (turns NSFW on login)
Title: Re: Broken GIF Animations after uploading/BatchAdd
Post by: Joachim Müller on January 22, 2009, 08:45:59 AM
Upload settings are not as suggested per docs for upload troubleshooting purposes.
Title: Re: Broken GIF Animations after uploading/BatchAdd
Post by: Riox on January 23, 2009, 06:23:33 AM
chmod is 777 and 755
debug is on
upload cut off to 1 file and 0 URLs
Title: Re: Broken GIF Animations after uploading/BatchAdd
Post by: Joachim Müller on January 23, 2009, 08:37:28 AM
Admin approval is still on although it should be off for fast results. My two test uploads seem to have worked as expected, can't tell for sure though (as suggested, admin approval is "on").
Title: Re: Broken GIF Animations after uploading/BatchAdd
Post by: MrTheme on January 23, 2009, 03:56:02 PM
The gifs are being turned into jpg's
Title: Re: Broken GIF Animations after uploading/BatchAdd
Post by: Riox on January 25, 2009, 11:39:30 PM
Found in a uploaded GIF --> CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 80

I changed the Settings in CPG (Files and thumbnails settings -> Quality for JPEG files) to 81 and uploaded another GIF file

CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 81

ok, know we know that somehow all uploads and batch-add files get pushed through GD, converted to jpeg and that the outcome replaces the original file... why does CPG or Stamms Mod. to that? No, there is no resizing