I have a logo from which I want to make an animated gif so that it looks like a gleaming object (the effect of light flashing across it - not sure whether I am explaining myself well).

I have a feeling this should be possible with ImageMagick wizardry (in fact I am certain it is), but I lack the know-how and searching the internet has not turned up any examples of what I am looking for.

  • Would you not use GIMP's gap plugin? It's very easy to create animated gifs using it.
    – Eamorr
    Sep 20 '11 at 11:24

It seems to me that something which handles light is the way to do this. You want to mimic light as it plays across a surface, and a 3d package is probably best suited to this. If you want to mimic this by hand, you need to understand what light does to an object, and the quickest way to get a feel for this is to freeze-frame videos of the effect (youtube etc).

An animated gif can be created by creating individual image files (frames) and then using a tool to composite them. I have in the past actually used visual basic to programmatically composite images and animation to output frames and then a 3rd tool to composite the set into an animated gif. The hard part is simulating the light.

Exactly how you do this depends greatly on the software you have available to do this, but were I to attempt this in Photoshop, I might use the lens flare and/or the render lighting on multiple iterations of a single base image (in other words, don't apply the effect multiple times), changing the position parameters to make the light source look like it is moving, and output the resulting frame as a gif with a numeric name (frame_0001.gif).

Regarding lens flare and imagemagick: ( http://www.imagemagick.org/discourse-server/viewtopic.php?t=16004 )

Note that in the resulting images they have on that page, there is simply a black background with a white flare. If you create a set of these, and apply them each in turn to a logo image using "overlay" or "multiply" at less than 100% opacity you would probably achieve something that mimics a moving light source.

Bonus points for cast shadows in opposition to the light source.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.