Advanced search  

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]

Pages: [1]   Go Down

Author Topic: distorted thumbnails for animated gifs  (Read 6902 times)

0 Members and 1 Guest are viewing this topic.

indie

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
distorted thumbnails for animated gifs
« 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)
(http://www.indiephp.com/bad.jpg)
Good (full size)
(http://www.indiephp.com/good.jpg)
« Last Edit: August 10, 2006, 11:33:46 am by Stramm »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: distorted thumbnails for animated gifs
« Reply #1 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.
Logged

indie

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: distorted thumbnails for animated gifs
« Reply #2 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: distorted thumbnails for animated gifs
« Reply #3 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.
Logged

indie

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: distorted thumbnails for animated gifs
« Reply #4 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
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: distorted thumbnails for animated gifs
« Reply #5 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' => '',

indie

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: distorted thumbnails for animated gifs
« Reply #6 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...
Logged

akulion

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: distorted thumbnails for animated gifs
« Reply #7 on: October 23, 2006, 06:51:42 pm »

thanks :D

had the same issue :D

now on to fix it  :-*
Logged

akulion

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: distorted thumbnails for animated gifs
« Reply #8 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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: distorted thumbnails for animated gifs
« Reply #9 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 ::).
Logged

akulion

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: distorted thumbnails for animated gifs
« Reply #10 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
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.