about summary refs log tree commit diff
path: root/app/models/preview_card_provider.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/preview_card_provider.rb
parent53028af10ee5244d050e84580c396df25c2e8fc3 (diff)
Fix metadata scrubbing removing color profile from images (#20389)
Diffstat (limited to 'app/models/preview_card_provider.rb')
-rw-r--r--app/models/preview_card_provider.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/preview_card_provider.rb b/app/models/preview_card_provider.rb
index 15b24e2bd..d61fe6020 100644
--- a/app/models/preview_card_provider.rb
+++ b/app/models/preview_card_provider.rb
@@ -25,7 +25,7 @@ class PreviewCardProvider < ApplicationRecord
 
   validates :domain, presence: true, uniqueness: true, domain: true
 
-  has_attached_file :icon, styles: { static: { format: 'png', convert_options: '-coalesce -strip' } }, validate_media_type: false
+  has_attached_file :icon, styles: { static: { format: 'png', convert_options: '-coalesce +profile "!icc,*" +set modify-date +set create-date' } }, validate_media_type: false
   validates_attachment :icon, content_type: { content_type: ICON_MIME_TYPES }, size: { less_than: LIMIT }
   remotable_attachment :icon, LIMIT