Re: Cannot read input picture file

1,421 views
Skip to first unread message

Pascal Massimino

unread,
Oct 10, 2012, 9:37:35 AM10/10/12
to webp-d...@webmproject.org
Hi,

On Tue, Oct 9, 2012 at 12:02 PM, <elbue...@gmail.com> wrote:
I tried using cwebp.exe to convert pngs, but it's giving me the following error:

C:\projects\png>cwebp.exe renderBotWeb.png -q 40 -v -o renderBotWeb.webp
IWICFormatConverter_Initialize(pConverter, (IWICBitmapSource*)pFrame, has_alpha
? MAKE_REFGUID(GUID_WICPixelFormat32bppRGBA_) : MAKE_REFGUID(GUID_WICPixelFormat
24bppRGB_), WICBitmapDitherTypeNone, NULL, 0.0, WICBitmapPaletteTypeCustom) fail
ed 88982f50
Error! Could not process file renderBotWeb.png
Error! Cannot read input picture file 'renderBotWeb.png'

What am I doing wrong?

Is the PNG image viewable using other programs? (Like, in a browser).

Also: it looks like a problem with system-libraries. Some version numbers would help i guess...


--
You received this message because you are subscribed to the Google Groups "WebP Discussion" group.
To view this discussion on the web visit https://groups.google.com/a/webmproject.org/d/msg/webp-discuss/-/soUGacumhrIJ.
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.

James Zern

unread,
Oct 15, 2012, 10:01:18 PM10/15/12
to webp-d...@webmproject.org, elbue...@gmail.com


On Saturday, October 13, 2012 6:00:04 AM UTC-7, elbue...@gmail.com wrote:
> Is the PNG image viewable using other programs? (Like, in a browser).
Yes, of coarse



Also: it looks like a problem with system-libraries. Some version numbers would help i guess...
It's the latest version 0.2
 
Are you on XP, Vista, Windows 7?
You might try adding -noalpha, it may be related to a recently closed issue [1], though the source there was jpeg.

James Zern

unread,
Oct 16, 2012, 2:07:32 PM10/16/12
to webp-d...@webmproject.org, elbue...@gmail.com


On Tuesday, October 16, 2012 9:04:45 AM UTC-7, elbue...@gmail.com wrote:
In using Windows XP SP3.
Yes, I need alpha transparancy for this image. The main reason I'm using webp is because it supports lossy with alpha transparancy (doesn't it?)

It does. The problem likely has to do with XP and the Windows Image Component (WIC) which is used to decode the image. If they are out of date then the request for RGBA or BGRA will fail. If you can build from source you could temporarily use libpng instead.

James Zern

unread,
Oct 16, 2012, 7:27:57 PM10/16/12
to webp-d...@webmproject.org, elbue...@gmail.com


On Tuesday, October 16, 2012 11:07:32 AM UTC-7, James Zern wrote:


On Tuesday, October 16, 2012 9:04:45 AM UTC-7, elbue...@gmail.com wrote:
In using Windows XP SP3.
Yes, I need alpha transparancy for this image. The main reason I'm using webp is because it supports lossy with alpha transparancy (doesn't it?)

It does. The problem likely has to do with XP and the Windows Image Component (WIC) which is used to decode the image.

I opened issue 130 to track this [1]. In testing it looks like the BGRA -> RGBA conversion fails on XP SP3. I haven't checked to see whether this is avoidable with certain configurations, but the solution will be to make the convert a bit more robust -- BGRA seems to work in this case.

Reply all
Reply to author
Forward
0 new messages