Enable progressive encoding for new JPEG thumbnails and samples; see issue #1665

Enable progressive encoding for resized images, as discussed in issue #1665. Works with every normal browser, but might introduce compatibility issues with certain embedded devices.
This commit is contained in:
kittey 2013-05-26 15:12:41 +02:00
parent bf20130082
commit 70616dd1a7

View File

@ -18,6 +18,8 @@ module Danbooru
image.write(write_path) do
self.quality = resize_quality
# setting PlaneInterlace enables progressive encoding for JPEGs
self.interlace = Magick::PlaneInterlace
end
image.destroy!