Chrome 是否支持 JPEG 2000 解码?

Does Chrome support JPEG 2000 decoding?

阅读关于 SO 这样的问题 one,让我想知道 Chrome 如何支持 PDF ≥ 1.7(它可以包含 JPEG 2000 码流),同时声称它支持不支持 JPEG 2000:

这里有什么技巧?

根据我的快速测试 Chrome 浏览器的内置 PDF 查看器可以很好地处理 JPEG2000 图像。与 FireFox 的内置 PDF 查看器相同。

这是一个包含 JPEG2000 图像数据的文件: http://ia802702.us.archive.org/9/items/jockofthebushveld00fitziala/jockofthebushveld00fitziala.pdf

这是因为 Chrome 中的 PDF 是用 PDFium, which does support JPEG2000 while HTML is rendered using Blink 渲染的,而

这里已经讨论过这个问题:

特别是 comment #4 做出以下观察:

Chrome already has JPEG2000 support and includes openjpeg library for its PDF reader and has to deal with its fuzzing/security issues anyway so the actually supporting it like Safari is not opening a new attack surface and doesn't cost binary size also I'd guess.

同样如此here:

PDF is not part of the standard web platform, it is a plugin, so it is out of scope. However, I agree with you that it seems silly to support this in one context and not in another.

blink-dev 上的完整线程: