Skip to content

Lossless JPEG -> JXL transcoding question #380

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

You must be logged in to vote

Hi @dkam,

Like (I think?) all image processing libraries, libvips always decompresses to pixel values then recompresses, so it can't do this kind of direct transform. You need to use the libjxl tools for this.

libjpeg has a similar thing -- it can do very fast lossless crop and rotate of JPEG images (as long as you stick to 8 pixel boundaries), but there's no way you can expose functionality like that in an image processing library, you have to use the libjpeg tools.

Replies: 1 comment

Comment options

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