about summary refs log tree commit diff
path: root/app/models/site_upload.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-11-11 09:20:10 +0100
committerGitHub <noreply@github.com>2022-11-11 09:20:10 +0100
commit9bc0a6c861e07d0112ef2e5ccd28adeca868bdbe (patch)
tree00001c6554ebd15d01df92cf805b9eda58703452 /app/models/site_upload.rb
parent53028af10ee5244d050e84580c396df25c2e8fc3 (diff)
Fix metadata scrubbing removing color profile from images (#20389)
Diffstat (limited to 'app/models/site_upload.rb')
-rw-r--r--app/models/site_upload.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/site_upload.rb b/app/models/site_upload.rb
index d3b81d4d5..167131fdd 100644
--- a/app/models/site_upload.rb
+++ b/app/models/site_upload.rb
@@ -40,7 +40,7 @@ class SiteUpload < ApplicationRecord
     mascot: {}.freeze,
   }.freeze
 
-  has_attached_file :file, styles: ->(file) { STYLES[file.instance.var.to_sym] }, convert_options: { all: '-coalesce -strip' }, processors: [:lazy_thumbnail, :blurhash_transcoder, :type_corrector]
+  has_attached_file :file, styles: ->(file) { STYLES[file.instance.var.to_sym] }, convert_options: { all: '-coalesce +profile "!icc,*" +set modify-date +set create-date' }, processors: [:lazy_thumbnail, :blurhash_transcoder, :type_corrector]
 
   validates_attachment_content_type :file, content_type: /\Aimage\/.*\z/
   validates :file, presence: true