Update crop_card.py

This commit is contained in:
henriquenakashima 2023-07-01 01:01:45 -04:00
parent e615ff0093
commit 5c24071842

View file

@ -74,11 +74,12 @@ def crop(input_filepath: Path) -> Path:
cropped_w, cropped_h = cropped_part.width, cropped_part.height
# Draw where cuts should go
# TODO: Move this after composing a sheet and add guide lines to the edge
cut_pixels = LEAVE_BLEED_INCHES * dpi_by_w
cut_pixels_int = round(cut_pixels)
draw = ImageDraw.Draw(cropped_part)
LENGTH_CUT_GUIDE_INCHES = 0.06
CUT_GUIDE_WIDTH_INCHES = 0.004
CUT_GUIDE_WIDTH_INCHES = 0.006
guide_len = round(LENGTH_CUT_GUIDE_INCHES * dpi_by_w)
guide_thickness = round(CUT_GUIDE_WIDTH_INCHES * dpi_by_w)
cut_x_l = cut_pixels_int