From f1db7c7e82e30387428d0a89da32dccedb21a021 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Tue, 6 Jan 2026 08:54:29 +0200 Subject: [PATCH] adjust trim --- lib/templates/image_to_fields.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/templates/image_to_fields.rb b/lib/templates/image_to_fields.rb index e1c37135..f2bb7244 100755 --- a/lib/templates/image_to_fields.rb +++ b/lib/templates/image_to_fields.rb @@ -245,7 +245,7 @@ module Templates left, top, trim_width, trim_height = image.find_trim(threshold: 10, background: [255, 255, 255]) - trim_width = [trim_width, image.width * 0.7].max + trim_width = [trim_width, image.width - (left * 2)].max padded_left = [left - padding, 0].max padded_top = [top - padding, 0].max