Sha256: 36a83cd6ff0ba24d19f40c4edcdb5f47ee178ab86b7b4a3907522f9010e70773
Contents?: true
Size: 234 Bytes
Versions: 3
Compression:
Stored size: 234 Bytes
Contents
# frozen_string_literal: true require 'image_voodoo' ImageVoodoo.with_image(ARGV[0]) do |img| 10.times do |i| quality = i / 10.0 img.quality(quality) do |qimg| qimg.save "#{ARGV[0]}_#{quality}.jpg" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
image_voodoo-0.9.3 | samples/lossy.rb |
image_voodoo-0.9.2 | samples/lossy.rb |
image_voodoo-0.9.1 | samples/lossy.rb |