We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77f6779 commit d3edcbaCopy full SHA for d3edcba
lib/cheesy-gallery/image_file.rb
@@ -40,6 +40,11 @@ def process_and_write(img, path)
40
img.change_geometry!(@max_size) do |cols, rows, i|
41
i.resize!(cols, rows)
42
end
43
+ # follow recommendations from https://stackoverflow.com/a/7262050/4918 to get better compression
44
+ img.interlace = Magick::PlaneInterlace
45
+ # but skip the blur to avoid too many changes to the data
46
+ # img.gaussian_blur(0.05)
47
+ img.strip!
48
# workaround weird {self} initialisation pattern
49
quality = @quality
50
img.write(path) { self.quality = quality }
0 commit comments