Unsupported color conversion request

4,145 views
Skip to first unread message

Anjanesh

unread,
Apr 17, 2011, 12:06:00 AM4/17/11
to WebP Discussion
For many JPGs I get :

cwebp -q 75 01.jpg -o 01.webp
Unsupported color conversion request
Error! Could not process file 01.jpg
Error! Cannot read input picture

All are of RGB colour space not CMYK.

Vikas Arora

unread,
Apr 17, 2011, 11:22:39 PM4/17/11
to anja...@gmail.com, webp-d...@webmproject.org
Can you upload the jpeg file.


--
You received this message because you are subscribed to the Google Groups "WebP Discussion" group.
To post to this group, send email to webp-d...@webmproject.org.
To unsubscribe from this group, send email to webp-discuss...@webmproject.org.
For more options, visit this group at http://groups.google.com/a/webmproject.org/group/webp-discuss/?hl=en.


Vikas Arora

unread,
Apr 18, 2011, 1:03:41 AM4/18/11
to Anjanesh Lekshminarayanan, webp-d...@webmproject.org
This jpeg image has 4 color CMYK components and currently not supported in the example implementation of webp encoder (cwebp).

You can try converting to RBG color-space via ImageMagick (convert) or any other image-editor tool.
convert -colorspace RGB 05.jpg 05_RGB.jpg
cwebp -q 75 05_RGB.jpg -o 05_RGB.webp

On Mon, Apr 18, 2011 at 9:30 AM, Anjanesh Lekshminarayanan <anja...@gmail.com> wrote:
---------------------------------------------------------
Thanks & Regards
Anjanesh Lekshminarayanan

Anjanesh

unread,
Apr 19, 2011, 2:01:03 AM4/19/11
to WebP Discussion
Thanks. GIMP shows all of them as under RGB colorspace.

ImageMagick showed it as CMYK.
identify -format "%[colorspace]" 05.jpg
CMYK

elan...@gmail.com

unread,
Sep 17, 2015, 4:04:31 PM9/17/15
to WebP Discussion
exec("convert -colorspace RGB ".$imageName." ".$webpimgName . " ");

http://www.codingslover.com/2015/07/cwebp-unsupported-color-conversion-request.html

Message has been deleted

James Zern

unread,
Nov 7, 2022, 8:05:34 PM11/7/22
to webp-d...@webmproject.org
Hi,

On Mon, Nov 7, 2022 at 12:35 AM MND LSN <mnd...@gmail.com> wrote:
I am on `Ubuntu 20.04 (LTS) x64` with `cwebp -version 1.2.4` and while processing about 320,009 files with this    
```
nohup `for file in img/*; do cwebp -quiet -q 50 "$file" -o "${file%.*}.webp"; done`
```
I get this kind of errors 
```
libjpeg error: Unsupported color conversion request

I think this has a similar root cause as https://crbug.com/webp/311#c5. The error comes from libjpeg which is outside of cwebp's control. The input is CMYK and the example is requesting RGB (djpeg -rgb will fail similarly). The tool could add a conversion, but the same issue as the libjpeg-turbo patch exists. It might be worth trying ImageMagick for the conversion.
 
Error! Could not process file img/037946023.jpg
Error! Cannot read input picture file 'img/037946023.jpg'
```
Attached below the example image `037946023.jpg`

--
You received this message because you are subscribed to the Google Groups "WebP Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webp-discuss...@webmproject.org.
To view this discussion on the web visit https://groups.google.com/a/webmproject.org/d/msgid/webp-discuss/94ec1667-4a3c-4163-9719-c59d4b7191d2n%40webmproject.org.

Nicely done

unread,
Dec 31, 2022, 3:49:11 AM12/31/22
to WebP Discussion, James Zern
Hello I have similar issue on ubuntu

libjpeg error: Unsupported color conversion request
Error! Could not process file 345632.jpg
Error! Cannot read input picture file '345632.jpg'

On windows everything is fine though.

вівторок, 8 листопада 2022 р. о 03:05:34 UTC+2 James Zern пише:
Reply all
Reply to author
Forward
0 new messages