Re: ReadImage TGA very slow

Bob Friesenhahn <[email protected]> Mon, 1 Oct 2018 15:28:50 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
On Mon, 1 Oct 2018, [email protected] wrote:
>
> I'll look into it, shouldn't be too hard. Another question (a bit unrelated):
> the code I attached doesn't seem to like pipes, do you know why? Strace show
> some lseek failing at some point, but that's all I got.
>
>> ~/gmdecode - <wallpaper.png
> 0.0399
>> cat wallpaper.png | ~/gmdecode -
> 0.0006
> Magick: Improper image header ().

I am not entirely sure but I suspect that it may help to put something 
in the "filename" field (maybe "-") even though there is no filename.

The built-in debug tracing is your friend.  Even if you don't 
explicitly support debug tracing in your program, you can enable it by 
setting the MAGICK_DEBUG environment variable before you run your 
program.  For example:

   export MAGICK_DEBUG=blob,coder,delegate,exception

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/