forked from e621ng/e621ng
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:
parent
bf20130082
commit
70616dd1a7
@ -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!
|
||||
|
Loading…
Reference in New Issue
Block a user