gpt4 book ai didi

ImageMagick 采样因子

转载 作者:行者123 更新时间:2023-12-04 11:54:32 26 4
gpt4 key购买 nike

我一直在使用 ImageMagick 命令行工具对图像进行 jpeg 压缩。但是,我试图了解采样因子的作用。它说采样因子用于指定块大小,即 8x8 或 16x16。但是,如果省略此参数,则无法找到使用的默认值。

此外,我尝试使用以下命令获取图像的属性:

识别-详细图像.jpg

它将采样因子值显示为 1x1、1x1、1x1。这是什么意思?它应该是 8x8 或 16x16 或 32x32....

谁能告诉我在哪里可以找到这些详细信息?

最佳答案

来自 ImageMagick's command line options :

-sampling-factor

This option specifies the sampling factors to be used by the JPEG encoder for chroma downsampling. If this option is omitted, the JPEG library will use its own default values.



Here is a good thread.. on Knowing which chroma-subsampling was used in a JPEG

Chroma Subsampling in JPG Compression

我希望这有帮助 :)

关于ImageMagick 采样因子,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15837750/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com