Skip to content

Commit 8ac8d3a

Browse files
Gargronhiyuki2578
authored andcommitted
Remove timestamps from converted images to make them deterministic (mastodon#11408)
1 parent 5347a08 commit 8ac8d3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/media_attachment.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class MediaAttachment < ApplicationRecord
113113
has_attached_file :file,
114114
styles: ->(f) { file_styles f },
115115
processors: ->(f) { file_processors f },
116-
convert_options: { all: '-quality 90 -strip' }
116+
convert_options: { all: '-quality 90 -strip +set modify-date +set create-date' }
117117

118118
validates_attachment_content_type :file, content_type: IMAGE_MIME_TYPES + VIDEO_MIME_TYPES + AUDIO_MIME_TYPES
119119
validates_attachment_size :file, less_than: IMAGE_LIMIT, unless: :larger_media_format?

0 commit comments

Comments
 (0)