generate.py: add logging of grid size

This commit is contained in:
Alan Orth 2024-02-26 09:27:45 +03:00
parent 4465c08c78
commit ef3dcd432f
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -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}")