Hi! Thanks for your absolutely amazing library. I am investigating whether this is feasible to use in a radiology viewer application, so my investigation is restricted to using lossless formats.
For my investigation, I am creating benchmarks that try out the various image formats and analyze:
Average encoding speed (this is not super important, can be done in a background task)
Average decoding speed (this is very important, the user will be actively waiting for this to finish)
Average compression ratio (this is very important, the user will be actively waiting to finish downloading the image)
I also have some unit tests that go through a single encode + decode and verify the pixel data is the same, which hopefully confirms that the encoding and decoding process is lossless.
For now, it looks like WebP and AVIF are not lossless yet, so I am presuming I'm configuring them wrong.
I also can't seem to get HEIF working, but I am also presuming an error on my part. Investigation there is ongoing.
This is my question: is it already possible to pass in WebP and AVIF encoder options so it can be set to lossless? I found a folder "Webp" under "NativeCodecs" but this only seems to implement a decoder, and is nowhere on NuGet yet.
Furthermore, if you have advice on the best parameters to use per file format for my benchmarks, I would be very eager to hear them.
Thanks and have a nice day!
P.S. Feel free to (re)use the benchmarks and tests in any way if they can be of any use to you.
P.P.S. The benchmarks also include LZ4 to compare a "naive" byte array encoding with the more intelligent image formats. Sorry if that's confusing.
Hi! Thanks for your absolutely amazing library. I am investigating whether this is feasible to use in a radiology viewer application, so my investigation is restricted to using lossless formats.
For my investigation, I am creating benchmarks that try out the various image formats and analyze:
I also have some unit tests that go through a single encode + decode and verify the pixel data is the same, which hopefully confirms that the encoding and decoding process is lossless.
You can follow my progress here: https://github.com/amoerie/lossless-codec-benchmarks
For now, it looks like WebP and AVIF are not lossless yet, so I am presuming I'm configuring them wrong. I also can't seem to get HEIF working, but I am also presuming an error on my part. Investigation there is ongoing.
This is my question: is it already possible to pass in WebP and AVIF encoder options so it can be set to lossless? I found a folder "Webp" under "NativeCodecs" but this only seems to implement a decoder, and is nowhere on NuGet yet.
Furthermore, if you have advice on the best parameters to use per file format for my benchmarks, I would be very eager to hear them.
Thanks and have a nice day!
P.S. Feel free to (re)use the benchmarks and tests in any way if they can be of any use to you. P.P.S. The benchmarks also include LZ4 to compare a "naive" byte array encoding with the more intelligent image formats. Sorry if that's confusing.