mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 23:32:33 -05:00
add ico and bmp support
This commit is contained in:
1 parent
8a10852fe2
commit
bfa244c8fa
4 files changed
+403
-7
No files matched your search
@@ -309,7 +309,7 @@ module Submissions
|
||||
|
||||
image =
|
||||
begin
|
||||
Vips::Image.new_from_buffer(attachment.download, '').autorot
|
||||
Submissions::GenerateResultAttachments.load_vips_image(attachment).autorot
|
||||
rescue Vips::Error
|
||||
next unless attachment.content_type.starts_with?('image/')
|
||||
next if attachment.byte_size.zero?
|
||||
|
||||
Reference in new issue
Block a user