ImageMagick JPEG compression block size
Posted: 2013-04-11T10:06:53-07:00
Any idea on what block size (8x8 or 16x16 ??) is used in JPEG compression by ImageMagick? And, is there a way to change this default block size?
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://imagemagick.com/discourse-server/
https://imagemagick.com/discourse-server/viewtopic.php?t=23162
Yes, I already looked at it. In -sampling-factor option, it talks about the block size in addition to chroma sampling. However, I'm not able to relate them. I tried finding about it a lot and my best guess is when I say -sampling-factor 1x1, it takes the block size as 8x8. Similarly, for -sampling-factor 2x2, block size 16x16. May be it's like multiple of 8. Chroma sampling is not directly related to block size, however, it may have to do something in deciding the block size in ImageMagick jpeg compression algo. But it's not documented anywhere and hence not sure about it.fmw42 wrote:I do not know. The best reference I know is http://www.imagemagick.org/Usage/formats/#jpg_write