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

dman’s picture

Um? 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.

tmas73’s picture

Sure 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

fietserwin’s picture

A 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.

dman’s picture

It'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 :-}

tmas73’s picture

Thanks for the help, but what does that mean? I am new to drupal. Thanks

fietserwin’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

Is this issue still relevant?

If so, can you please explain once more what exactly your problem is?

If not, please close the issue.

fietserwin’s picture

Category: Bug report » Support request
Status: Postponed (maintainer needs more info) » Closed (works as designed)

Closing this issue, assuming that the answer was satisfactorily for OP. If not feel free to reopen this issue by stating your request more explicitly.

heshanlk’s picture

Status: Closed (works as designed) » Active

I'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.

dman’s picture

@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

  1. enable debugging with the imagemagick toolkit
  2. review the commandline it runs
  3. try running that commandline yourself and verify if it damages gifs when run independently
  4. look to the imagemagick help documentation to find if there is a known flag or something you need to add
  5. figure out a working commandline through reading imagemagic docs
  6. try adding the extra flag through imagecache_actions customaction
  7. report back here

If you find that your version of imagemagick does NOT do gif resizing, then you are out of luck entirely. Maybe try GraphicsMagick

nachenko’s picture

Watermarking 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...

fietserwin’s picture

Status: Active » Closed (works as designed)

I guess this has been solved by now. Feel free to reopen if not, adding any additional info possible.