Menu

#48 zbarimg - read from stdin

closed
spadix
None
5
2011-02-28
2011-02-12
No

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.

Discussion

  • spadix

    spadix - 2011-02-14

    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!

     
  • spadix

    spadix - 2011-02-14
    • assigned_to: nobody --> spadix
    • status: open --> pending
     
  • Daniel Kahn Gillmor

    (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!

     
  • SourceForge Robot

    • status: pending --> closed
     
  • SourceForge Robot

    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).

     

Log in to post a comment.