Announcement

#1 2014-05-01 23:15:34

kyp_
Member
2013-06-17
84

Animated GIF thumbnails or static thumbnail option

Hey,

I'm looking for an option, when working with gif's,  to choose between
either getting a jpg thumbnail generated or a downscaled gif (if that is possible)

For example, gif files with a resolution below the Gthumb resolution, will show the whole
gif on the thumbnail index page. If a gif file is larger then the Gthumb max height it will become
a static 1-frame .gif thumbnail.

Now I am looking for either "one" of the following solutions:

a. make all GIF thumbnails static (1frame),
      and I will place a watermark overlay with Media Icons,
      which works pretty well, but it also places the overlay icon on animated gif thumbnails
      which is is quite unnecessary ;)

b. make all GIF thumbnails re-sized and animated


Any plugins or solutions out there that can help here?

cheers
kyp


Piwigo version: 2.5.1
PHP version: 5.4.17
MySQL version: 5.5.36-cll


my current Media Icons workaround:
(which is ignoring any best-practice stuff due to my lack of skills :) )

\plugins\Media_Icon\template\media_icon.tpl  line 32

{if $media_icon_active.dailymotion eq 1}
            //Dailymotion
            $("img[media_icon*=gif]").before('<span class="media_icon media_icon_dailymotion_{$media_icon_style}"></span>');
        {/if}

Replace:
  Media_Icon\template\icons\logo_dailymotion.png
    with your logo


Cheers

Offline

 

#2 2014-05-02 11:47:12

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Animated GIF thumbnails or static thumbnail option

kyp_ wrote:

a. make all GIF thumbnails static (1frame),

it's exactly what Piwigo does currently no ?

about b, no plugin exists yet, it's actually not possible with PHP GD, only users with ImageMagick will be able to resize animated gifs

or you can generate downscaled gif on your computer and inject them into _data/i directory (what i did for the only gif I have http://galerie.strangeplanet.fr/index.php?/category/31)

Offline

 

#3 2014-05-02 20:46:52

kyp_
Member
2013-06-17
84

Re: Animated GIF thumbnails or static thumbnail option

mistic100 wrote:

it's exactly what Piwigo does currently no ?

No. GIFs that are the same height or smaller, as the GThumb defined height will show up animated on the index page. It looks good to have animated gifs in the masonary layout of Gthumb but gif size and height are not proptional as it is with jpg (due to the different amount of frames inside the gif, just to be clear).
(You should still have my sites URL in case something was unclear.)


The inject thing is my solution I think, thanks for that.


And nice Rig, hope you keep it dark in the room ;)

cheers
kyp


Cheers

Offline

 

#4 2014-05-02 20:51:49

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Animated GIF thumbnails or static thumbnail option

kyp_ wrote:

thing is my solution I think, thanks for that.

I have a very short memory, it's the adult gallery ?
if so, yes I see what you mean, right no I don't have a solution

If I've time I'll try to create a plugin to handle that (one option to force static thumbnail generation and one option to resize gifs if ImageMagick is activated)
but really I don't promise anything

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact