Spaces:
Runtime error
Runtime error
patch tiny white gaps 2
Browse files126 unmodified lines127128129130131132133134135126 unmodified lines# Calculate overlap areaswhite_gaps_patch = 2left_overlap = margin_x + overlap_x if overlap_left else margin_x + white_gaps_patchright_overlap = margin_x + new_width - overlap_x if overlap_right else margin_x + new_width + white_gaps_patchtop_overlap = margin_y + overlap_y if overlap_top else margin_y + white_gaps_patchbottom_overlap = margin_y + new_height - overlap_y if overlap_bottom else margin_y + new_height + white_gaps_patch# Draw the maskmask_draw.rectangle([126 unmodified lines127128129130131132133134135126 unmodified lines# Calculate overlap areaswhite_gaps_patch = 2left_overlap = margin_x + overlap_x if overlap_left else margin_x + white_gaps_patchright_overlap = margin_x + new_width - overlap_x if overlap_right else margin_x + new_width - white_gaps_patchtop_overlap = margin_y + overlap_y if overlap_top else margin_y + white_gaps_patchbottom_overlap = margin_y + new_height - overlap_y if overlap_bottom else margin_y + new_height - white_gaps_patch# Draw the maskmask_draw.rectangle([
app.py+2-2