fix image scale result generation

This commit is contained in:
Pete Matsyburka committed 2023-12-07 22:46:15 +02:00
1 parent 16a2fde4b7
commit a32dcc0dc5
1 file changed
+1 -1
@@ -69,7 +69,7 @@ module Submissions
scale = [(area['w'] * width) / image.width,
(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(
io,