mirror of
https://github.com/alanorth/safari-bingo-cards.git
synced 2024-11-23 23:30:21 +01:00
generate.py: add logging of grid size
This commit is contained in:
parent
4465c08c78
commit
ef3dcd432f
@ -174,6 +174,7 @@ if __name__ == "__main__":
|
|||||||
# Join all thumbnails together in an array of x across with a padding of 2
|
# Join all thumbnails together in an array of x across with a padding of 2
|
||||||
# pixels between each square.
|
# pixels between each square.
|
||||||
joined = pyvips.Image.arrayjoin(thumbnails, across=args.across, shim=2)
|
joined = pyvips.Image.arrayjoin(thumbnails, across=args.across, shim=2)
|
||||||
|
logger.info(f"Generated card with a {args.across}x{args.across} grid of animals...")
|
||||||
|
|
||||||
joined.jpegsave(args.output_file, optimize_coding=True, strip=True)
|
joined.jpegsave(args.output_file, optimize_coding=True, strip=True)
|
||||||
logger.info(f"Wrote {args.output_file}")
|
logger.info(f"Wrote {args.output_file}")
|
||||||
|
Loading…
Reference in New Issue
Block a user