Skip to content
Snippets Groups Projects
Unverified Commit 501148ab authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Remove timestamps from converted images to make them deterministic (#11408)

parent 92569ffd
No related branches found
No related tags found
No related merge requests found
......@@ -113,7 +113,7 @@ class MediaAttachment < ApplicationRecord
has_attached_file :file,
styles: ->(f) { file_styles f },
processors: ->(f) { file_processors f },
convert_options: { all: '-quality 90 -strip' }
convert_options: { all: '-quality 90 -strip +set modify-date +set create-date' }
validates_attachment_content_type :file, content_type: IMAGE_MIME_TYPES + VIDEO_MIME_TYPES + AUDIO_MIME_TYPES
validates_attachment_size :file, less_than: IMAGE_LIMIT, unless: :larger_media_format?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment