-2

I was thinking about using Rmagick, does anyone else have a good exp with this program? I have seen some Java scripts that do this but I'm more use to working in Ruby.

Малъ Скрылевъ
  • 16,187
  • 5
  • 56
  • 69
mongobongo
  • 171
  • 12

1 Answers1

3

RMagick gem is able to split .gif into separate images. See ::read method. It returns:

An array containing 0 or more Image objects. If the file is a multi-image file such as an animated GIF or a Photoshop PSD file with multiple layers, the array contains an Image object for each image or layer in the file.

Do something like this:

image = Image.read( 'file.gif' )
Community
  • 1
  • 1
Малъ Скрылевъ
  • 16,187
  • 5
  • 56
  • 69