Skip to content

Commit

Permalink
CLI/extract-images: Fix another dotted filepath blunder
Browse files Browse the repository at this point in the history
Same as 7ce4d31.
  • Loading branch information
mara004 committed May 27, 2024
1 parent 3fd35cf commit f250b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pypdfium2/_cli/extract_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f250b34

Please sign in to comment.