cwebp does not support URL in input file?

589 views
Skip to first unread message

pinal.op...@gmail.com

unread,
Aug 30, 2018, 2:09:51 AM8/30/18
to WebP Discussion
I am trying to convert jpg into webp. I am setting https URL as an input file.
I am using this command to convert webp
   cwebp -q 75 https://imgur.com/a/ggwiHOi -resize 525 300 -o C:\images\webp\5aabaa66e6dab_json_image_1521199718.webp

then I get the following error 

SHCreateStreamOnFileA(filename, STGM_READ, stream) failed 8007007b
Error opening input file https://imgur.com/a/ggwiHOi (8007007b)
OpenInputStream(filename, &stream) failed 8007007b
cannot open input file 'https://imgur.com/a/ggwiHOi'
Error! Could not process file https://imgur.com/a/ggwiHOi
Error! Cannot read input picture file 'https://imgur.com/a/ggwiHOi'


James Zern

unread,
Sep 5, 2018, 2:02:49 AM9/5/18
to WebP Discussion
Hi,
HTTP and other network resources aren't supported for input by cwebp, it works on files present on the file system. For this you can download the image via your web browser or using curl/wget from the command line. 

James Zern

unread,
Sep 5, 2018, 2:05:08 AM9/5/18
to WebP Discussion
To link this to the bug thread which I missed initially:
Reply all
Reply to author
Forward
0 new messages