Example: Update preview example to generate all preview images
require 'rmagick'
img = Magick::Image.read('images/Flower_Hat.jpg').first
-preview = img.preview(Magick::SolarizePreview)
-preview.minify.write('preview.jpg')
-exit
+Magick::PreviewType.values.each do |type|
+ puts "** Generate #{type}"
+ preview = img.preview(type)
+ preview.minify.write("preview_#{type}.jpg")
+end
