Update crop_card.py
This commit is contained in:
parent
e615ff0093
commit
5c24071842
1 changed files with 2 additions and 1 deletions
|
|
@ -74,11 +74,12 @@ def crop(input_filepath: Path) -> Path:
|
||||||
cropped_w, cropped_h = cropped_part.width, cropped_part.height
|
cropped_w, cropped_h = cropped_part.width, cropped_part.height
|
||||||
|
|
||||||
# Draw where cuts should go
|
# 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 = LEAVE_BLEED_INCHES * dpi_by_w
|
||||||
cut_pixels_int = round(cut_pixels)
|
cut_pixels_int = round(cut_pixels)
|
||||||
draw = ImageDraw.Draw(cropped_part)
|
draw = ImageDraw.Draw(cropped_part)
|
||||||
LENGTH_CUT_GUIDE_INCHES = 0.06
|
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_len = round(LENGTH_CUT_GUIDE_INCHES * dpi_by_w)
|
||||||
guide_thickness = round(CUT_GUIDE_WIDTH_INCHES * dpi_by_w)
|
guide_thickness = round(CUT_GUIDE_WIDTH_INCHES * dpi_by_w)
|
||||||
cut_x_l = cut_pixels_int
|
cut_x_l = cut_pixels_int
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue