Skip to content

Optimal way of saving .pdf as .png pages #177

Answered by akash-akya
gmile asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @gmile! Thanks for trying Vix.

libvips lazy loads wherever it is possible, so it does not loads the whole image when you ask for a specific page with page, and n (# pages) with value 1 (default). So it is already optimal in that sense. If you have large number of pages then you can write multiple pages concurrently using Task.async_stream at the cost of more memory.

If you see abnormal memory usage then please share more details.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gmile
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