We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5347a08 commit 8ac8d3aCopy full SHA for 8ac8d3a
1 file changed
app/models/media_attachment.rb
@@ -113,7 +113,7 @@ class MediaAttachment < ApplicationRecord
113
has_attached_file :file,
114
styles: ->(f) { file_styles f },
115
processors: ->(f) { file_processors f },
116
- convert_options: { all: '-quality 90 -strip' }
+ convert_options: { all: '-quality 90 -strip +set modify-date +set create-date' }
117
118
validates_attachment_content_type :file, content_type: IMAGE_MIME_TYPES + VIDEO_MIME_TYPES + AUDIO_MIME_TYPES
119
validates_attachment_size :file, less_than: IMAGE_LIMIT, unless: :larger_media_format?
0 commit comments