问题描述
我一直在使用ImageMagick命令行工具对图像进行jpeg压缩。但是,我试图理解采样因子的作用。它说采样因子用于指定块大小,即8x8或16x16。但是,如果省略此参数,我找不到使用的默认值。
I have been using ImageMagick command line tool for jpeg compression of the images. However, I'm trying to understand the role of sampling factor. It says the sampling factor is used to specify the block size i.e. 8x8 or 16x16. However, I can't find the default values used if I omit this parameter.
此外,我尝试使用以下命令获取图像的属性:
Also, I tried fetching properties of an image by using the following command:
识别-verbose图像。 jpg
identify -verbose image.jpg
它显示采样因子值为1x1,1x1,1x1。这是什么意思?它应该是8x8或16x16或32x32 ....
It shows sampling factor values as 1x1, 1x1, 1x1. What does it mean? Either it should be 8x8 or 16x16 or 32x32....
有谁可以请你知道在哪里可以找到这些细节?
Could anyone please give me an idea where to find these details?
推荐答案
来自:
此选项指定JPEG
编码器用于色度下采样的采样因子。如果省略此选项,则JPEG
库将使用其自己的默认值。
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.
我希望这会有所帮助:)
I hope this helps :)
这篇关于ImageMagick采样因子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!