简体   繁体   English

Mozjpeg-渐进式jpeg图像渲染,首先显示灰度图像

[英]Mozjpeg - Progressive jpeg image rendering showing a grayscale image first

I am using the following command to generate progressive JPEGs using mozjpeg (cjpeg utility) 我正在使用以下命令使用mozjpeg(cjpeg实用程序)生成渐进式JPEG。

cjpeg -quality 85 -outfile outputfile.jpg inputfile.jpg

On rendering this output image, a grayscale image is first shown which is then followed by a greenish image and then the original image. 渲染此输出图像时,首先显示灰度图像,然后显示绿色图像,然后显示原始图像。 After quite a bit of study, i found that splitting of DC coefficients is done to reduce the size of image. 经过大量研究后,我发现进行DC系数分割可以减小图像尺寸。 But, i need the rendering to be a blurred to bright one. 但是,我需要渲染是模糊的到明亮的。 How to achieve this? 如何实现呢?

There's an option for this: 有一个选项:

-dc-scan-opt   DC scan optimization mode
             - 0 One scan for all components
             - 1 One scan per component (default)
             - 2 Optimize between one scan for all components and one scan for 1st component
                 plus one scan for remaining components

The default causes grayscale look, because it sends luma separately from chroma. 默认设置会导致灰度外观,因为它将亮度与色度分开发送。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM