ImageMagick sampling factor

泪湿孤枕 提交于 2019-12-10 03:54:09

问题


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:

identify -verbose image.jpg

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?


回答1:


From 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

I hope this helps :)



来源:https://stackoverflow.com/questions/15837750/imagemagick-sampling-factor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!