Support for JPEG compression is controlled by JPEG_SUPPORT. The JPEG codec that comes with libtiff is designed for use with release 5 or later of the Independent JPEG Group's freely available software distribution. This software can be retrieved from the directory ftp.uu.net:/graphics/jpeg/.
如果你看看代码: https://github.com/openslide/openslide/blob/7b99a8604f38280d14a34db6bda7a916563f96e1/src/openslide-vendor-generic-tiff.c#L222-L226
您将看到它使用
libtiff
:函数TIFFIsCODECConfigured
由底层的libtiff
库提供(请参见man page)。在compression标记被设置为
7
;这是非常受支持的JPEG ('new-style' JPEG)
压缩方案,有时也称为JPEG-in-TIFF
;您需要为其安装编解码器。在如果您还保留着幻灯片并使用了柯达成像技术,那么您可能可以使用不同的压缩方式再次扫描它们;但这将是一种迂回的方式。尝试添加编解码器并在
libtiff
中启用它可能更容易。在从^{} documentation :
因此支持是可选的,您可能需要重建
libtiff
(请参见instructions)。在参考文献:
相关问题 更多 >
编程相关推荐