WEBP images from STDIN fail when format specified [patch]
Posted: 2014-07-08T12:46:14-07:00
I'm trying to read a WEBP image from the command line over STDIN. This works in most cases except when I specifically tell convert that the incoming data is WEBP format.
Code: Select all
$ convert Example.webp info:-
Example.webp WEBP 2448x2512 2448x2512+0+0 8-bit sRGB 58KB 0.100u 0:00.099
$ convert WEBP:Example.webp info:-
WEBP: Example.webp WEBP 2448x2512 2448x2512+0+0 8-bit sRGB 58KB 0.090u 0:00.090
$ cat Example.webp | convert - info:-
- WEBP 2448x2512 2448x2512+0+0 8-bit sRGB 58KB 0.110u 0:00.110
$ cat Example.webp | convert WEBP:- info:-
convert: memory allocation failed `-' @ error/webp.c/ReadWEBPImage/260.
convert: no images defined `info:-' @ error/convert.c/ConvertImageCommand/3187.