qiqian / webp

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

stdin/stdout support #181

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run in the terminal: cat in.jpg | cwebp - -o - > out.webp

What is the expected output? What do you see instead?

Expected it to read from stdin and output to stdout.

What version of the product are you using? On what operating system?

webp 0.4.0
OS X 10.9.1

Please provide any additional information below.

This is needed to be able to use webp for in-memory operation without having to 
write to disk.

Discussion on mailinglist: 
https://groups.google.com/a/webmproject.org/forum/#!topic/webp-discuss/8HdNfq0Wj
mY

imagemagick supports this for webp with: cat in.jpg | convert - webp:- > 
out.webp

Original issue reported on code.google.com by sindresorhus on 2 Jan 2014 at 3:01

GoogleCodeExporter commented 8 years ago
> $ cat in.jpg | cwebp - -o - > out.webp

This needs to be formatted like this:

$ cat in.jpg | cwebp -o - -- - > out.webp

The utilities adopted getopt style behavior.

Original comment by jz...@google.com on 7 Jan 2014 at 8:50