Need Help: cwebp errors on some files

188 views
Skip to first unread message

Zach Ehret

unread,
Feb 17, 2021, 9:54:44 PM2/17/21
to WebP Discussion

I am trying to convert TIFF Images to WEBP. I have the latest cwebp.exe binary from Google. To access this binary, I am utilizing code that was graciously made available here: https://stackoverflow.com/a/65998284

There are no problems executing this or the binary from within Java.

However, on some files, the conversion is erroring with the error:

Decoding of input data failed. Status: 3(BITSTREAM_ERROR)
Error! Could not process file '...filepath...'
Error! Cannot read input picture file '...filepath...'

The file names are in the pattern ###-###.tif

I can run the cwebp.exe binary from the command line and successfully convert these files with the same options.

Yannis Guyon

unread,
Feb 18, 2021, 3:54:37 AM2/18/21
to WebP Discussion, zeh...@gmail.com
If the cwebp binary works, it seems the issue comes from the script you linked and the bug report should be done there.

Did you try renaming problematic files as images that worked, or the other way around? It would help you determine if the root cause is the file content or path.

Reply all
Reply to author
Forward
0 new messages