From a89f4c1b10b04aecd837701e752424c92af327a3 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Tue, 6 Jan 2026 10:22:34 +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 c8d86473..3acf594b 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 - (left * 2)].max + trim_width = [trim_width, image.width - (left * 1.9)].max padded_left = [left - padding, 0].max padded_top = [top - padding, 0].max