Skip to content

Lossless WebP? #88

Answered by saucecontrol
amoerie asked this question in Q&A
Jul 7, 2022 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

Howdy! I can fill in a few gaps for you.

First thing to know is that not all mime types known to MagicScaler have codec support presently. TrySetEncoderFormat returns a bool to tell you whether an encoder for the requested format was found, so you would need to check that result.

AVIF is not supported at all yet, and although it does have a spec for lossless encoding, it's not good -- as in it's less efficient than PNG which is much much older. If we add AVIF, it will probably be lossy only.

HEIF is supported only for decode, mostly because Apple is the only major user of that format, and we're only concerned with being able to process HEIC images from Apple devices and get them converted…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@amoerie
Comment options

@saucecontrol
Comment options

@amoerie
Comment options

@amoerie
Comment options

@saucecontrol
Comment options

Answer selected by amoerie
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
Converted from issue

This discussion was converted from issue #87 on July 07, 2022 20:11.