Merge pull request #5122 from consul/strip-metadata

Remove metadata from images
This commit is contained in:
Sebastia
2023-06-26 15:56:33 +02:00
committed by GitHub
3 changed files with 27 additions and 2 deletions

View File

@@ -41,9 +41,9 @@ class Image < ApplicationRecord
def variant(style)
if style
attachment.variant(self.class.styles[style])
attachment.variant(self.class.styles[style].merge(strip: true))
else
attachment
attachment.variant(strip: true)
end
end