ICC profile not copied from .TIFF

332 views
Skip to first unread message

Stephan Busch

unread,
Jul 28, 2013, 12:03:54 PM7/28/13
to webp-d...@webmproject.org
Hi there.

I am converting .TIFF to .WEBP using this commandline: cwebp -lossless -m 6 -metadata all sony24.tif -o sony24.webp.
At first, cwebp shows "Warning: only ICC profile extraction is currently supported on this platform!" - I don't know why.
The .TIFF also contains an ICC profile which does not seem to detected and imported.

I am using Windows 8 and WEBP 0.3.1.
The problem file is here: http://www.squeezechart.com/sony24.tif

How can I get the metadata of my .tif files to .webp during conversion and without using webpmux.exe after conversion?
And when can we expect a WIC codec with metadata support?


Best regards,
Stephan

Brendan Bolles

unread,
Jul 29, 2013, 12:56:28 PM7/29/13
to webp-d...@webmproject.org
On Jul 28, 2013, at 9:03 AM, Stephan Busch wrote:

> I am converting .TIFF to .WEBP using this commandline: cwebp -lossless -m 6 -metadata all sony24.tif -o sony24.webp.
> At first, cwebp shows "Warning: only ICC profile extraction is currently supported on this platform!" - I don't know why.
> The .TIFF also contains an ICC profile which does not seem to detected and imported.
>
> I am using Windows 8 and WEBP 0.3.1.
> The problem file is here: http://www.squeezechart.com/sony24.tif


I see no evidence that this TIFF has an ICC profile in it. Which profile do you think it has?

The EXIF ColorSpace attribute is set to 65535 (uncalibrated).


Brendan

Stephan Busch

unread,
Jul 29, 2013, 7:24:28 PM7/29/13
to webp-d...@webmproject.org
After having checked this file again, I cannot find ICC profile myself.
Sorry for reporting a bug that does not seem to exist.

But can anybody please tell me why cwebp.exe tells me
only ICC profiles are supported on this platform?
Can we expect full metadata support on Windows machines?


Best regards,

Stephan

Brendan Bolles

unread,
Jul 29, 2013, 8:52:10 PM7/29/13
to webp-d...@webmproject.org
On Jul 29, 2013, at 4:24 PM, Stephan Busch wrote:

> But can anybody please tell me why cwebp.exe tells me
> only ICC profiles are supported on this platform?
> Can we expect full metadata support on Windows machines?


Perhaps Skal can shed some light, but I can see from looking at the code that cwebp uses Windows Imaging Component (WIC) on Windows to read the input file, while on other platforms it uses the open source TIFF, PNG, and JPEG libraries.

Presumably the advantage to WIC is that it is already included with Visual Studio and supports many more formats than just TIFF, PNG, and JPEG, but the disadvantage is it only has calls to pull out ICC profiles, and not EXIF or XMP. You could get the libraries and build cwebp without WIC if you know how to do such a thing yourself.

BTW, if you have Photoshop you could open up your TIFF in that program and use my plug-in to save a WebP with all the supported metadata.


Brendan

oX Triangle

unread,
Jul 30, 2013, 7:18:14 AM7/30/13
to webp-d...@webmproject.org
could it be
that WIC is stopped by libs v0.2.0?

i have never see a WIC with 0.3.x

Stephan Busch

unread,
Jul 30, 2013, 10:05:12 AM7/30/13
to webp-d...@webmproject.org
Would it be possible to turn off usage of WIC with a special switch in future versions?
I don't know how to compile WEBP without WIC and I have hundreds of lossless .TIFF photographs
that I don't want to load in an application for just converting them.

If the WEBP codec for windows is causing this, may I ask for an updated version?

Brendan Bolles

unread,
Jul 30, 2013, 3:32:46 PM7/30/13
to webp-d...@webmproject.org
If he's seeing the "Warning: only ICC profile extraction is currently supported on this platform!" message, then cwebp must be getting built with HAVE_WINCODEC_H. I assume he's using a recent download.

Granted, the currently posted snapshot is v1.1.0 from May 2012.

http://code.google.com/p/webm/downloads/list


Brendan

James Zern

unread,
Jul 30, 2013, 5:49:20 PM7/30/13
to webp-d...@webmproject.org


On Monday, July 29, 2013 5:52:10 PM UTC-7, Brendan Bolles wrote:
On Jul 29, 2013, at 4:24 PM, Stephan Busch wrote:

> But can anybody please tell me why cwebp.exe tells me
> only ICC profiles are supported on this platform?
> Can we expect full metadata support on Windows machines?


Perhaps Skal can shed some light, but I can see from looking at the code that cwebp uses Windows Imaging Component (WIC) on Windows to read the input file, while on other platforms it uses the open source TIFF, PNG, and JPEG libraries.

Yes, WIC is the default on Windows based builds if available. 

Presumably the advantage to WIC is that it is already included with Visual Studio and supports many more formats than just TIFF, PNG, and JPEG, but the disadvantage is it only has calls to pull out ICC profiles, and not EXIF or XMP.

Correct. EXIF and XMP were left as a TODO through the WIC interface.
 
 You could get the libraries and build cwebp without WIC if you know how to do such a thing yourself.

I updated issue 163 [1] with some detail on this. There's no explicit --disable-wic, but you can modify config.h post-configure.


BTW, if you have Photoshop you could open up your TIFF in that program and use my plug-in to save a WebP with all the supported metadata.


James Zern

unread,
Jul 30, 2013, 5:50:17 PM7/30/13
to webp-d...@webmproject.org

Stephan Busch

unread,
Jul 31, 2013, 12:00:50 PM7/31/13
to webp-d...@webmproject.org
Reading this site it seems WIC has already support for MP and EXIF metadata:

http://msdn.microsoft.com/en-us/library/windows/desktop/ee719653(v=vs.85).aspx


oX Triangle

unread,
Aug 1, 2013, 2:20:17 AM8/1/13
to webp-d...@webmproject.org
Oh!
WIC supports some TIFF metadata: App1, App13, IFD, IRB, EXIF, XMP,GPS and IPTC

for fast encoding is only IFD EXIF XMP GPS and IPTC
TIFF use mostly IFD... i dont know how simple is converting formats of metadata

Stephan Busch

unread,
Aug 6, 2013, 5:29:00 PM8/6/13
to webp-d...@webmproject.org
Can anybody please confirm if the metadata support of WIC exists and can be used by WEBP?
If we could get this working, WEBP will also become interesting for photographers.

Thank you

Stephan

James Zern

unread,
Aug 8, 2013, 3:08:24 PM8/8/13
to webp-d...@webmproject.org


On Tuesday, August 6, 2013 2:29:00 PM UTC-7, Stephan Busch wrote:
Can anybody please confirm if the metadata support of WIC exists and can be used by WEBP?
If we could get this working, WEBP will also become interesting for photographers.

Only ICC profile extraction is available through the WIC implementation currently. I opened a bug to track this [1] as it should be possible to add support for this.
On Windows to avoid using WIC you'll need to build from source [2].


Thank you

Stephan
Reply all
Reply to author
Forward
0 new messages