smaller audit initial

This commit is contained in:
Pete Matsyburka
2025-06-03 10:13:49 +03:00
parent de3f83db96
commit 0375dad7c9
+1 -1
View File
@@ -322,7 +322,7 @@ module Submissions
resized_image = image.resize([scale, 1].min)
io = StringIO.new(resized_image.write_to_buffer('.png'))
width = field['type'] == 'initials' ? 100 : 200
width = field['type'] == 'initials' ? 50 : 200
height = resized_image.height * (width.to_f / resized_image.width)
if height > MAX_IMAGE_HEIGHT