Issue 127 in webp: why i can encode my own jpg file by cwebp.exe

204 views
Skip to first unread message

we...@googlecode.com

unread,
Aug 20, 2012, 11:37:07 PM8/20/12
to webp-d...@webmproject.org
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 127 by gab...@126.com: why i can encode my own jpg file by
cwebp.exe
http://code.google.com/p/webp/issues/detail?id=127

What steps will reproduce the problem?
D:\webp\release-static\x86\bin>cwebp.exe orig.jpg -o orig.webp
Error! Could not process file orig.jpg
Error! Cannot read input picture file 'orig.jpg'

What is the expected output? What do you see instead?
why cwebp.exe could not process file orig.jpg. many other jpg file could
not process too while the jpg file which was create by dwebp.exe can
process. why this problem occur?

What version of the product are you using? On what operating system?
I am using libwebp-0.2.0 in windows xp sp3, compile the source code with
visual studio 2010.

Please provide any additional information below.



Attachments:
test.jpg 95.1 KB
orig.jpg 26.9 KB

we...@googlecode.com

unread,
Aug 21, 2012, 1:59:25 AM8/21/12
to webp-d...@webmproject.org

Comment #1 on issue 127 by gab...@126.com: why i can encode my own jpg file
by cwebp.exe
http://code.google.com/p/webp/issues/detail?id=127

“why i cannot encode my own jpg file by cwebp.exe”sorry for the type error

we...@googlecode.com

unread,
Aug 21, 2012, 3:59:00 PM8/21/12
to webp-d...@webmproject.org

Comment #2 on issue 127 by jz...@google.com: why i can encode my own jpg
Can you try the release binaries to compare the behavior?

http://webp.googlecode.com/files/libwebp-0.2.0-windows-x86.zip

Are you building the source with Makefile.vc? From the output it looks like
the WIC path is being used. Try adding -v to get a bit more error reporting
related to that.

we...@googlecode.com

unread,
Aug 21, 2012, 9:33:25 PM8/21/12
to webp-d...@webmproject.org

Comment #3 on issue 127 by gab...@126.com: why i can encode my own jpg file
by cwebp.exe
http://code.google.com/p/webp/issues/detail?id=127

i built the source with the command "nmake /f Makefile.vc
CFG=release-static RTLIBCFG=static OBJDIR=output".
i have tried the release binaries just a moment ago, the same error
occurred.
with the -v option, "IWICFormatConverter_Initialize(pConverter,
(IWICBitmapSource*)pFrame, has_alpha
? MAKE_REFGUID(GUID_WICPixelFormat32bppRGBA_) :
MAKE_REFGUID(GUID_WICPixelFormat
24bppRGB_), WICBitmapDitherTypeNone, NULL, 0.0, WICBitmapPaletteTypeCustom)
fail
ed 88982f50" was printed.
how can i handle this problem?

we...@googlecode.com

unread,
Aug 22, 2012, 1:16:36 AM8/22/12
to webp-d...@webmproject.org

Comment #4 on issue 127 by jz...@google.com: why i can encode my own jpg
This is a WIC related error code: WINCODEC_ERR_COMPONENTNOTFOUND.
You could try to reinstall WIC [1], though that might be SP2 specific.
Another option would be to undefine HAVE_WINCODEC_H and then build against
libjpeg (WEBP_HAVE_JPEG).

I'll try to reproduce this on a local XP SP3 machine.

[1] http://www.microsoft.com/en-us/download/details.aspx?id=32

we...@googlecode.com

unread,
Aug 22, 2012, 8:51:23 PM8/22/12
to webp-d...@webmproject.org
Updates:
Status: Accepted

Comment #5 on issue 127 by jz...@google.com: why i can encode my own jpg
The issue seems to be the request for RGBA as an attempt to preserve alpha,
which won't be present in this case.

A workaround will be to add -noalpha to the command line.

we...@googlecode.com

unread,
Aug 22, 2012, 11:19:12 PM8/22/12
to webp-d...@webmproject.org

Comment #7 on issue 127 by gab...@126.com: why i can encode my own jpg file
by cwebp.exe
http://code.google.com/p/webp/issues/detail?id=127

with the "-noalpha" option it works. thank you for your help

we...@googlecode.com

unread,
Aug 22, 2012, 11:50:25 PM8/22/12
to webp-d...@webmproject.org

Comment #8 on issue 127 by gab...@126.com: why i can encode my own jpg file
by cwebp.exe
http://code.google.com/p/webp/issues/detail?id=127

i have another question.
when i build webp on my linux platform "Linux 2.6.18-164.el5xen #1 SMP Tue
Aug 18 15:59:52 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux" with the
instruction in https://developers.google.com/speed/webp/docs/compiling,
after execute the command ./autogen.sh, i would get make error.
however ,when i didn't execute "./autogen.sh" before execute "./configure",
i can install webp success. why this happened?

we...@googlecode.com

unread,
Aug 23, 2012, 12:56:41 AM8/23/12
to webp-d...@webmproject.org

Comment #9 on issue 127 by jz...@google.com: why i can encode my own jpg
Note in the future please post questions like the above on the webp-discuss
mailing list, not in an unrelated bug.

The autogen.sh script requires additional tools to be installed, you're
probably missing autoreconf (part of autoconf) and the related automake
tools.
This step is unnecessary except when building from git, though. I'll remove
it from that section to avoid confusion.

we...@googlecode.com

unread,
Oct 15, 2012, 10:03:28 PM10/15/12
to webp-d...@webmproject.org
Updates:
Status: Fixed

Comment #12 on issue 127 by jz...@google.com: why i can encode my own jpg
This changed has been merged (v0.2.0-35-gcf1e90d):

cf1e90d Merge "cwebp: fix jpg encodes on XP"
ecd66f7 cwebp: fix jpg encodes on XP


Reply all
Reply to author
Forward
0 new messages