mirror of
https://github.com/docusealco/docuseal
synced 2026-11-15 16:12:32 -05:00
adjust image load
This commit is contained in:
1 parent
9e4da5948b
commit
07841722ac
9 files changed
+42
-51
No files matched your search
@@ -363,7 +363,7 @@ module Submissions
|
||||
|
||||
image =
|
||||
begin
|
||||
Submissions::GenerateResultAttachments.load_vips_image(attachment).autorot
|
||||
ImageUtils.load_vips(attachment.download, content_type: attachment.content_type).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