简体   繁体   中英

Grayscale JPEG to YCbCr JPEG

How can I convert a grayscale JPEG to a YCbCr JPEG?

I am looking for a possibility without converting the JPEG file to RGB and then back to JPEG.

Y is the gray channel. All you would need to do is change the number of components in the SOF marker from 1 to three and add dummy Cb and Cr channels that produce all zeros.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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