Difference between native codecs and WIC #149
-
Is there a difference in performance or quality when using the default WIC versus the native codecs for jpeg or png? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It's complicated. I meant to document some of this better, but it's kind of a moving target. I'll go ahead and leave some notes here, but this is subject to change. JPEG
The native plugin also supports optimized huffman tables and progressive encoding, both of which improve compression over WIC's encoding (but at the cost of speed). The enhanced compression is available when using PNGWIC's PNG is, at this moment, faster than the There are also a couple of small differences in capability between the two codecs. The native plugin supports decoding animated PNG, while WIC supports decoding the weird PNG variant created by the iOS PNG optimizer. Quality is largely the same since PNG is lossless, but WIC's codec doesn't handle greyscale images with a GIFWIC's GIF is slightly faster than WebPWIC's WebP is delivered as a Store app, so it's not available everywhere, and it is less complete than the plugin version (animated support, planar decode, and advanced compression settings). Otherwise, they're both based on |
Beta Was this translation helpful? Give feedback.
It's complicated. I meant to document some of this better, but it's kind of a moving target. I'll go ahead and leave some notes here, but this is subject to change.
JPEG
libjpeg-turbo
is faster and has very slightly improved accuracy over WIC's JPEG. The performance improvement is quite pronounced on progressive JPEG decode.The native plugin also supports optimized huffman tables and progressive encoding, both of which improve compression over WIC's encoding (but at the cost of speed). The enhanced compression is available when using
JpegOptimizedEncoderOptions
from the plugin package.PNG
WIC's PNG is, at this moment, faster than the
libpng
plugin, mostly due to its use of Intel's comme…