mirror of
https://github.com/docusealco/docuseal
synced 2026-11-09 07:42:32 -05:00
fix image scale result generation
This commit is contained in:
1 parent
16a2fde4b7
commit
a32dcc0dc5
1 file changed
+1
-1
@@ -69,7 +69,7 @@ module Submissions
|
|||||||
scale = [(area['w'] * width) / image.width,
|
scale = [(area['w'] * width) / image.width,
|
||||||
(area['h'] * height) / image.height].min
|
(area['h'] * height) / image.height].min
|
||||||
|
|
||||||
io = StringIO.new(image.resize([scale * 4, 1].min).write_to_buffer('.png'))
|
io = StringIO.new(image.resize([scale * 4, 1].select(&:positive?).min).write_to_buffer('.png'))
|
||||||
|
|
||||||
canvas.image(
|
canvas.image(
|
||||||
io,
|
io,
|
||||||
|
|||||||
Reference in new issue
Block a user