~cytrogen/masto-fe

8a9d7aeb1effff661373f18157a87eb607a0000f — Colette Kerr 2 years ago f3a2e15
Change DCT method used for JPEG encoding to float (#26675)

1 files changed, 1 insertions(+), 1 deletions(-)

M app/models/media_attachment.rb
M app/models/media_attachment.rb => app/models/media_attachment.rb +1 -1
@@ 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