zbarimg - read from stdin
Status: Beta
Brought to you by:
spadix
Forwarded from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=602954
currently, if i run
zbarimg foo.png
it does what i expect.
but if i do:
zbarimg - < foo.png
it fails, saying "ERROR: specify image file(s) to scan"
accepting data on stdin makes it much easier to hook zbarimg together
with other tools in shell pipelines. this would be a nice feature to
have.
This feature already exists; zbarimg accepts data on stdin using the ImageMagick syntax, eg:
zbarimg PNG:- < foo.png
convert foo.png -blur 0 MIFF:- | zbarimg MIFF:-
I also made a quick fix to allow the autodetected syntax you are expecting (applied to hg, rev 8d7f0b03b96b). Let me know if you see any problems with it...
Thanks for forwarding this request!
(i'm the original reporter of the bug in debian)
i can confirm that the hg revision in question makes things WorkForMe™ as i expect/hope (i applied it against the 0.10+doc-4 source in debian).
Thanks for the fix!
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).