forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: indie on August 10, 2006, 08:41:42 am

Title: distorted thumbnails for animated gifs
Post by: indie on August 10, 2006, 08:41:42 am
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://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.indiephp.com%2Fbad.jpg&hash=3bfe155512457152be79cce841457f8ddc2e7f71)
Good (full size)
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.indiephp.com%2Fgood.jpg&hash=eee4f5e17a3858dd5f5dd69e3cdf9a003965c04b)
Title: Re: distorted thumbnails for animated gifs
Post by: Joachim Müller on August 10, 2006, 09:27:12 am
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.
Title: Re: distorted thumbnails for animated gifs
Post by: indie on August 10, 2006, 09:39:41 am
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
Title: Re: distorted thumbnails for animated gifs
Post by: Joachim Müller on August 10, 2006, 09:47:18 am
edit: do you have a better idea on file format for animations then, if gifs are "outdated"?
Honestly: no, sorry.

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?
That's an option - shouldn't be too hard.
Title: Re: distorted thumbnails for animated gifs
Post by: indie on August 10, 2006, 09:50:28 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
Title: Re: distorted thumbnails for animated gifs
Post by: 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)
Code: [Select]
                        'thumb' => $CONFIG['thumb_pfx'],and replace with
Code: [Select]
                        'thumb' => '',
Title: Re: distorted thumbnails for animated gifs
Post by: indie on August 10, 2006, 10:16:10 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)
Code: [Select]
                        'thumb' => $CONFIG['thumb_pfx'],and replace with
Code: [Select]
                        '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...
Title: Re: distorted thumbnails for animated gifs
Post by: akulion on October 23, 2006, 06:51:42 pm
thanks :D

had the same issue :D

now on to fix it  :-*
Title: Re: distorted thumbnails for animated gifs
Post by: akulion on October 23, 2006, 07:16:08 pm
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?
Title: Re: distorted thumbnails for animated gifs
Post by: Joachim Müller on October 23, 2006, 07:18:00 pm
Hard to suggest anything without you posting a link to your coppermine-driven gallery, and maybe some deep link to the "distorted" thumbs ::).
Title: Re: distorted thumbnails for animated gifs
Post by: akulion on October 24, 2006, 12:07:24 am
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