6

I see official cwebp document have no option to specify target colorspace https://developers.google.com/speed/webp/docs/cwebp

because I wish using grayscale color space could save some space for text image.

Charles Chou
  • 179
  • 1
  • 15

1 Answers1

0

According to the Specification for WebP Lossless Bitstream and the VP8 Data Format and Decoding Guide, WebP only deals with (A)RGB.

Checkout the libwebp decode and encode APIs.

david
  • 1,311
  • 12
  • 32