Cut lines are now shown behind the tiles.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Fri, 28 Jun 2019 21:29:39 +0000 (23:29 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Fri, 28 Jun 2019 21:29:39 +0000 (23:29 +0200)
gimp_passport.py

index 5a6d994..4d7bf1c 100644 (file)
@@ -157,8 +157,8 @@ def main(paper_width_mm: float, paper_height_mm: float, paper_margin_mm: float,
     spacing = mm_to_pixel(photo_spacing_mm, dpi)
     columns = num_tiles(paper.width, passport_tile.width, margin, spacing)
     rows = num_tiles(paper.height, passport_tile.height, margin, spacing)
-    tile(paper, passport_tile, columns, rows, margin, spacing)
     cut_lines_xy(paper, columns, rows, passport_tile.size, margin, spacing)
+    tile(paper, passport_tile, columns, rows, margin, spacing)
     paper = downsample_large(paper, max_dpi)
     paper.save(dest_image, dpi=paper.info['dpi'])