From 8a9d7aeb1effff661373f18157a87eb607a0000f Mon Sep 17 00:00:00 2001 From: Colette Kerr Date: Thu, 7 Sep 2023 05:26:25 +0200 Subject: [PATCH] Change DCT method used for JPEG encoding to float (#26675) --- app/models/media_attachment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/media_attachment.rb b/app/models/media_attachment.rb index f0b072e23f..bd0efb7188 100644 --- a/app/models/media_attachment.rb +++ b/app/models/media_attachment.rb @@ -171,7 +171,7 @@ class MediaAttachment < ApplicationRecord DEFAULT_STYLES = [:original].freeze GLOBAL_CONVERT_OPTIONS = { - all: '-quality 90 +profile "!icc,*" +set modify-date +set create-date', + all: '-quality 90 +profile "!icc,*" +set modify-date -define jpeg:dct-method=float +set create-date', }.freeze belongs_to :account, inverse_of: :media_attachments, optional: true