mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 07:42: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
@@ -77,7 +77,7 @@ module Templates
|
||||
split_page: false, aspect_ratio: false, padding: nil, page_number: nil)
|
||||
return [[], nil] if page_number && page_number != 0
|
||||
|
||||
image = Vips::Image.new_from_buffer(io.read, '')
|
||||
image = ImageUtils.load_vips(io.read, content_type: attachment.content_type)
|
||||
|
||||
fields = inference.call(image, confidence:, nms:, nmm:, split_page:,
|
||||
temperature:, aspect_ratio:, padding:)
|
||||
|
||||
Reference in new issue
Block a user