Improve some error messages

This commit is contained in:
James R. Barlow
2021-10-28 01:16:22 -07:00
parent 644581ed3c
commit 1c4d5d79f7
2 changed files with 8 additions and 3 deletions
+4 -1
View File
@@ -585,7 +585,10 @@ def optimize(
log.info(f"Optimize ratio: {ratio:.2f} savings: {(savings):.1%}")
if savings < 0:
log.info("Image optimization did not improve the file - discarded")
log.info(
"Image optimization did not improve the file - "
"optimizations will not be used"
)
# We still need to save the file
with Pdf.open(input_file) as pike:
pike.remove_unreferenced_resources()