distorted thumbnails for animated gifs distorted thumbnails for animated gifs
 

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]

Main Menu

distorted thumbnails for animated gifs

Started by indie, August 10, 2006, 08:41:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

indie

Hi all,

I've used this script on and off for over a year, haven't run into any issues that I couldn't solve myself until now. Apologies if this has been asked, I tried numerous variations on the search function here and it just denounced my query as "not specific enough" ::) I used long search strings like distorted thumbnail "animated gif" but no luck, I think you may have too many stopwords here. Anyway...

I'm using 1.4.8 with imagemagick. When I create thumbnails for animated gifs they are distorting badly, it looks almost like just the first frame is being resized. When I tried GD2 instead I got a static thumb for them, but on some computers the thumbs didn't show at all. I honestly don't care if the thumbs for these images are animated or not, but I need them to be clear.

One thing to note, I am using small (avatar) images for this site, so they don't even *need* thumbnailing... Is there a way to dispense with it entirely and just show a grid of the full size images for each needed area (like random pics, latest uploads etc).

Thanks,
---Indie

Example:

Bad (thumb)
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.indiephp.com%2Fbad.jpg&hash=3bfe155512457152be79cce841457f8ddc2e7f71)
Good (full size)
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.indiephp.com%2Fgood.jpg&hash=eee4f5e17a3858dd5f5dd69e3cdf9a003965c04b)

Joachim Müller

Known issue, but not a coppermine issue: there's only limited support for animated gifs by the image libraries coppermine can use (ImageMagick or GD). Don't use GIFs, they are considered to be outdated.

indie

lol I *have* to use gifs, its an avatar site...

edit: do you have a better idea on file format for animations then, if gifs are "outdated"?

How about ditching the thumbnailing altogether? can it be replaced with just the full size images populating the grids, or would that be a major rewrite of core code?

Thanks again,
---Indie

Joachim Müller

Quote from: indie on August 10, 2006, 09:39:41 AM
edit: do you have a better idea on file format for animations then, if gifs are "outdated"?
Honestly: no, sorry.

Quote from: indie on August 10, 2006, 09:39:41 AMHow about ditching the thumbnailing altogether? can it be replaced with just the full size images populating the grids, or would that be a major rewrite of core code?
That's an option - shouldn't be too hard.

indie

Quote from: GauGau on August 10, 2006, 09:47:18 AM
That's an option - shouldn't be too hard.

Uh huh. Guess it's asking too much for some actual pointer on where to start with it?

---Indie

Stramm

you don't want in the thumbnail view coppermine to display thumbs but html resized 'fullsized' images... if yes then this is pretty easy to do

in include/functions.inc.php find (in the function get_pic_url)
                        'thumb' => $CONFIG['thumb_pfx'],
and replace with
                        'thumb' => '',

indie

Quote from: Stramm on August 10, 2006, 10:03:21 AM
you don't want in the thumbnail view coppermine to display thumbs but html resized 'fullsized' images... if yes then this is pretty easy to do

in include/functions.inc.php find (in the function get_pic_url)
                        'thumb' => $CONFIG['thumb_pfx'],
and replace with
                        'thumb' => '',

WOW. I seriously can't thank you enough, worked like a charm! I was expecting to be editing all night, now I can get on to uploading and sorting 3500 outdated gifs  ;D

Thanks so much!
---Indie

I can't believe it was just one edit...

akulion

thanks :D

had the same issue :D

now on to fix it  :-*

akulion

It works but to only some extent

Out of about 170 avatars that I added - 32 still came out distorted in thumbnail view
In actual view they look just fine...

Any help here?

Joachim Müller

Hard to suggest anything without you posting a link to your coppermine-driven gallery, and maybe some deep link to the "distorted" thumbs ::).

akulion

Got it figured out :D

Did a lot more searching in the forum until I came to 2 threads where the answer was mentioned :D

I basically had to comment out a bit of code in the searchnew.php file :D

Link to my site: http://path-to-peace.net/forum/coppermine

Thanks - its all fixed