Skip to content

How to match PyMuPdf output to pdf2image output? #913

Discussion options

You must be logged in to vote

I tried setResolution of 200, but that didn't help.

But the resolution was correctly set to the value, wasn't it? So, what was the difference?
Anyway, PyMuPDF also supports using Pillow for pixmap output, try this pix.pillowWrite("%02i.png" % page.number, dpi=(200, 200)).
The parameters of pillowWrite() are passed through to Pillow's Image.save() method unchanged. This should enable you to make the output as equal as desired.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@JorjMcKie
Comment options

@JorjMcKie
Comment options

@arun-rangarajan
Comment options

@JorjMcKie
Comment options

@arun-rangarajan
Comment options

Answer selected by arun-rangarajan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants