Is there a grayscale JPG format?

前端 未结 2 883
[愿得一人]
[愿得一人] 2021-01-05 07:48

When converting a color JPG image to grayscale, and saving it back to JPG, one can usually see at least 20% file size reduction, which seems natural.

Question:

2条回答
  •  孤独总比滥情好
    2021-01-05 08:19

    A color JPEG has 3 components: Y Cb Cr

    A grayscale JPEG has 1 component: Y

    You can convert a color JPEG into a grayscale simply by updating the header to indicate 1 component and deleting the Cb and Cr scans.

提交回复
热议问题