Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, I found some info on the Gif Animation issue for version 6 here in the section. I do wonder if there is a fix or patch to have the gif animation excluded from the watermark feature?
Thanks for the help.
Thomas
Comments
Comment #1
dman CreditAttribution: dman commentedUm? Can you link to what you are talking about? Please describe the issue.
GD doesn't support animation, so it's not within our control. I believe imagemagick can though, though you may get all sorts of different results.
Comment #2
tmas73 CreditAttribution: tmas73 commentedSure this sample for example. Its a GIF once I re cached the images with the watermark it looks messed up and the animation is gone. Is there a way to exclude certain image formats form getting the effect applied? I dont mind having no watermark on the gif animations. Would be a nice feature just to set it for JPG or png but disable others.
Link!
Thanks for the help.
Thomas
Comment #3
fietserwinA custom action looks like your single option (within the context of image styles). However the return value is not used by Drupal core to stop applying the subsequent effects within the image style.
Perhaps a custom field formatter that decides on what image style (if any) to use could be easier. Just let it select the image style based on file extension and/or other meta data like if it is an animation (if that can be easily extracted.
Comment #4
dman CreditAttribution: dman commentedIt's not impossible to do a "split to subroutine" based on filetype, like aspect switcher does.
But for now, a customaction would be able to do that.
It could mean adding a "no further processing" option to the list of subroutines - which would be generically useful.
... Next thing you know we'll be incorporating 'Rules' support there :-}
Comment #5
tmas73 CreditAttribution: tmas73 commentedThanks for the help, but what does that mean? I am new to drupal. Thanks
Comment #6
fietserwinIs this issue still relevant?
If so, can you please explain once more what exactly your problem is?
If not, please close the issue.
Comment #7
fietserwinClosing this issue, assuming that the answer was satisfactorily for OP. If not feel free to reopen this issue by stating your request more explicitly.
Comment #8
heshanlkI'm having the same issue, the Git doesn't work after resizing and watermarking. I tried to use ImageMagic toolkit but no luck any insight to fix this would be great. Thanks.
Comment #9
dman CreditAttribution: dman commented@heshan.lk it would help if you added more information about what you have tried, and especially what systems you are using if you want more ideas than have already been discussed here.
GD will not work. It's just not available in the library.
ImageMagick probably should, but you may need to add extra processing flags to it.
You should
If you find that your version of imagemagick does NOT do gif resizing, then you are out of luck entirely. Maybe try GraphicsMagick
Comment #10
nachenko CreditAttribution: nachenko commentedWatermarking an animated GIF is possible with ImageMagick, but you need a version that is not stone age:
http://stackoverflow.com/questions/10531514/watermark-on-animated-gif-wi...
Comment #11
fietserwinI guess this has been solved by now. Feel free to reopen if not, adding any additional info possible.