mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 15:42:32 -05:00
strip edited image
This commit is contained in:
1 parent
78b0ce9828
commit
5896c9a2aa
1 file changed
+1
-1
@@ -266,7 +266,7 @@ module Templates
|
|||||||
['.png', 'image/png', {}]
|
['.png', 'image/png', {}]
|
||||||
end
|
end
|
||||||
|
|
||||||
data = image.write_to_buffer(extension, **format_args)
|
data = image.write_to_buffer(extension, strip: true, **format_args)
|
||||||
|
|
||||||
blob = ActiveStorage::Blob.create_and_upload!(
|
blob = ActiveStorage::Blob.create_and_upload!(
|
||||||
io: StringIO.new(data),
|
io: StringIO.new(data),
|
||||||
|
|||||||
Reference in new issue
Block a user