I am trying to pipe a jpg filename to the Image Magick display command. As in “cat myfile | display”. “myfile” contains a jpg filename. It returns the error “display: no decode delegate for this image format `/tmp/magick-XXPOGHGV’ @ error/constitute.c/ReadImage/532”. What am I doing wrong? If I invoke display with the jpg filename, it works just fine.
Thus the input file is a field in the command line. What you do is sending text to stdin of the display program, but nowhere is said that it does read anything from stdin.
I guess it will work when you do
On 2011-10-03 22:26, ionmich wrote:
>
> I am trying to pipe a jpg filename to the Image Magick display command.
> As in “cat myfile | display”. “myfile” contains a jpg filename. It
> returns the error “display: no decode delegate for this image format
> `/tmp/magick-XXPOGHGV’ @ error/constitute.c/ReadImage/532”. What am I
> doing wrong? If I invoke display with the jpg filename, it works just
> fine.
Not all programs accept input that way.
–
Cheers / Saludos,
Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)