How to embed color profile?

492 views
Skip to first unread message

dope...@gmail.com

unread,
Jan 15, 2017, 5:53:52 PM1/15/17
to WebP Discussion
I've got some jpg images in sRGB with embeded color profiles. Images look as they should to for example in Chrome. If I convert them to webp using cwebp, colors look wrong (as if the embeded color profile would not be used at all). I've tried different options by conversion with no luck. If I use photoshop webp plugin to export images it looks as it should in chrome. If I open the image converted with cwebp (the one that looks wrong) in photoshop, convert it to sRGB and save it as webp (again with photoshop), it looks fine too.

So, how can a tell cwebp to use the color profile embeded in jpg? Thanks

Pascal Massimino

unread,
Jan 16, 2017, 5:42:03 AM1/16/17
to WebP Discussion
Hi,

On Sun, Jan 15, 2017 at 11:14 PM, <dope...@gmail.com> wrote:
I've got some jpg images in sRGB with embeded color profiles. Images look as they should to for example in Chrome. If I convert them to webp using cwebp, colors look wrong (as if the embeded color profile would not be used at all). I've tried different options by conversion with no luck. If I use photoshop webp plugin to export images it looks as it should in chrome. If I open the image converted with cwebp (the one that looks wrong) in photoshop, convert it to sRGB and save it as webp (again with photoshop), it looks fine too.

So, how can a tell cwebp to use the color profile embeded in jpg? Thanks

Did you use the option: 'cwebp -metadata all ...' when converting with cwebp? (just checking).
Maybe the color profile included in the original jpeg is not detected properly by cwebp, not sure.
In case, could you please open a bug on the issue tracker here: https://bugs.chromium.org/p/webp/issues/list
The original jpeg and steps to repro would be very helpful...

thanks!
skal/

dope...@gmail.com

unread,
Jan 17, 2017, 8:56:23 AM1/17/17
to WebP Discussion
-metadata all solved the problem!! Thanx! Actually i didn't know, that color profile is a part of metadata and didn't pay attantion to it!
Reply all
Reply to author
Forward
0 new messages