Skip to content

Instantly share code, notes, and snippets.

@chopmo
Created April 17, 2012 11:15
Show Gist options
  • Select an option

  • Save chopmo/2405340 to your computer and use it in GitHub Desktop.

Select an option

Save chopmo/2405340 to your computer and use it in GitHub Desktop.
require 'rmagick'
i = Magick::Image.read("test.jpg")[0]
puts i.interlace # => NoInterlace
i.write("test2.jpg") { self.interlace = Magick::PlaneInterlace }
puts i.interlace # => PlaneInterlace
puts Magick::Image.read("test2.jpg")[0].interlace # => JPEGInterlace
i.write("test3.jpg")
puts Magick::Image.read("test3.jpg")[0].interlace # => NoInterlace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment