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.
Asked
Active
Viewed 287 times
-2
-
Yes, it is able to split .gif into separate images. – Малъ Скрылевъ Jan 13 '14 at 19:39
1 Answers
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