jaewonjoo / webp

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

why i can encode my own jpg file by cwebp.exe #127

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by gab...@126.com on 21 Aug 2012 at 3:36

Attachments:

GoogleCodeExporter commented 8 years ago
“why i cannot encode my own jpg file by cwebp.exe”sorry for the type error

Original comment by gab...@126.com on 21 Aug 2012 at 5:59

GoogleCodeExporter commented 8 years ago
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.

Original comment by jz...@google.com on 21 Aug 2012 at 7:58

GoogleCodeExporter commented 8 years ago
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?

Original comment by gab...@126.com on 22 Aug 2012 at 1:33

GoogleCodeExporter commented 8 years ago
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

Original comment by jz...@google.com on 22 Aug 2012 at 5:16

GoogleCodeExporter commented 8 years ago
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.

Original comment by jz...@google.com on 23 Aug 2012 at 12:51

GoogleCodeExporter commented 8 years ago

Original comment by jz...@google.com on 23 Aug 2012 at 12:57

GoogleCodeExporter commented 8 years ago
with the "-noalpha" option it works. thank you for your help

Original comment by gab...@126.com on 23 Aug 2012 at 3:18

GoogleCodeExporter commented 8 years ago
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? 

Original comment by gab...@126.com on 23 Aug 2012 at 3:50

GoogleCodeExporter commented 8 years ago
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.

Original comment by jz...@google.com on 23 Aug 2012 at 4:56

GoogleCodeExporter commented 8 years ago
https://gerrit.chromium.org/gerrit/#/c/34970/

Original comment by jz...@google.com on 9 Oct 2012 at 1:39

GoogleCodeExporter commented 8 years ago

Original comment by jz...@google.com on 9 Oct 2012 at 1:40

GoogleCodeExporter commented 8 years ago
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

Original comment by jz...@google.com on 16 Oct 2012 at 2:03