Skip to content

PDF to Image without scale factor losing Quality. #319

Closed Answered by mara004
Ric-Wolf asked this question in Q&A
Discussion options

You must be logged in to vote

If the PDF pages in question do not consist of just an embedded image each, then there may be some fundamental misunderstanding in the first post.

What then do you mean by "I need the image file to have the same size and without losing quality"? PDFs are vector and images are raster, so rendering is by design a lossy operation that will create a bitmap of a certain size in pixels, and thereby a fixed displaying quality. Rendered bitmaps are bound to be bigger than the vector source in terms of file size.

On to_pil im using quality=100

to_pil() does not take any such argument:

def to_pil(self):

If you mean P…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Ric-Wolf
Comment options

@mara004
Comment options

Answer selected by mara004
@mara004
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants