qiqian / webp

Automatically exported from code.google.com/p/webp
0 stars 0 forks source link

Windows (XP + WIC) alpha conversion issue #130

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. XP SP3 (tested with ie6, ie7, fairly recently patched)
2. Use cwebp.exe built with WIC support to convert a PNG with alpha
3.

What is the expected output?
A webp file compressed with alpha.

What do you see instead?
A conversion error similar to:
IWICFormatConverter_Initialize(pConverter, (IWICBitmapSource*)pFrame, has_alpha
 ? MAKE_REFGUID(GUID_WICPixelFormat32bppRGBA_) : MAKE_REFGUID(GUID_WICPixelFormat
24bppRGB_), WICBitmapDitherTypeNone, NULL, 0.0, WICBitmapPaletteTypeCustom) fail
ed 88982f50

Original issue reported on code.google.com by jz...@google.com on 16 Oct 2012 at 11:24

GoogleCodeExporter commented 9 years ago
The issue seems to be in converting the source, reported as 32bpp BGRA, to the 
requested RGBA.

Original comment by jz...@google.com on 16 Oct 2012 at 11:25

GoogleCodeExporter commented 9 years ago
https://gerrit.chromium.org/gerrit/#/c/36173/

This has been merged:
 4828bb9 Merge "cwebp (windows): fix alpha image import on XP"

Original comment by jz...@google.com on 23 Oct 2012 at 11:29