Spaces:
Runtime error
Runtime error
patch tiny white gaps
Browse files124 unmodified lines125126127128128129130131129130131132133134135124 unmodified lines mask_draw = ImageDraw.Draw(mask)
# Calculate overlap areas white_gaps_patch = 2 left_overlap = margin_x + overlap_x if overlap_left else margin_x right_overlap = margin_x + new_width - overlap_x if overlap_right else margin_x + new_width top_overlap = margin_y + overlap_y if overlap_top else margin_y bottom_overlap = margin_y + new_height - overlap_y if overlap_bottom else margin_y + new_height left_overlap = margin_x + overlap_x if overlap_left else margin_x + white_gaps_patch right_overlap = margin_x + new_width - overlap_x if overlap_right else margin_x + new_width + white_gaps_patch top_overlap = margin_y + overlap_y if overlap_top else margin_y + white_gaps_patch bottom_overlap = margin_y + new_height - overlap_y if overlap_bottom else margin_y + new_height + white_gaps_patch
# Draw the mask mask_draw.rectangle([app.py+5-4