From f250b34ada9d0557e1dc47e9a68bbd4386ed3faf Mon Sep 17 00:00:00 2001 From: geisserml Date: Tue, 28 May 2024 00:32:00 +0200 Subject: [PATCH] CLI/extract-images: Fix another dotted filepath blunder Same as 7ce4d31a302c2fdc50185e35fc67513d6b3ea373. --- src/pypdfium2/_cli/extract_images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pypdfium2/_cli/extract_images.py b/src/pypdfium2/_cli/extract_images.py index 6fd94569e..873f62756 100644 --- a/src/pypdfium2/_cli/extract_images.py +++ b/src/pypdfium2/_cli/extract_images.py @@ -69,7 +69,7 @@ def main(args): try: if args.use_bitmap: pil_image = image.get_bitmap(render=args.render).to_pil() - pil_image.save( prefix.with_suffix("."+args.format) ) + pil_image.save(f"{prefix}.{args.format}") else: image.extract(prefix, fb_format=args.format, fb_render=args.render) except pdfium.PdfiumError: