Undo OptimizeTransLayer in gifs

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
sjeddie
Posts: 2
Joined: 2012-10-11T09:11:12-07:00
Authentication code: 67789

Undo OptimizeTransLayer in gifs

Post by sjeddie »

Hi, I'm looking at the RMagick documentation for ImageList, under method "optimize_layers", one of the options is:

OptimizeTransLayer
Given a GIF animation, replace any pixel in the sub-frame overlay images with
transparency, if it does not change the resulting animation by more than the
current fuzz factor. This should allow a existing frame optimized GIF animation
to compress into a smaller file size due to larger areas of one (transparent)
color rather than a pattern of multiple colors repeating the current disposed
image of the last frame.

I'm trying to go backwards - that is, take a gif image that has this optimization, and extract out its frames in full. Is there an easy way to reverse this with ImageMagick?

Link to ImageList: http://www.imagemagick.org/RMagick/doc/ilist.html
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Undo OptimizeTransLayer in gifs

Post by fmw42 »

sjeddie
Posts: 2
Joined: 2012-10-11T09:11:12-07:00
Authentication code: 67789

Re: Undo OptimizeTransLayer in gifs

Post by sjeddie »

Awesome. Thank you!
Post Reply