Skip to content

Accessing PNG compressed image data #3961

Answered by jcupitt
tonymarklove asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @tonymarklove,

Sorry, I think that's a bit too specialised for libvips. It aims to be a general image processing library and doesn't have much support for the insides of specific file formats, other than trying to load and save quickly.

Have you had a look at libspng? I think it'll (probably!) do what you want:

https://github.com/randy408/libspng

Re. PDFs -- libvips uses either poppler or PDFium for PDF rendering, so PNG compression for CMYK data would need to be implemented in one of those libraries. I'd check their feature lists and see what they have.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tonymarklove
Comment options

Answer selected by tonymarklove
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