linux - Is there an image viewer that takes images on STDIN?

20
2014-03
  • SL9

    I'm looking for an image viewer that takes data on stdin and can be run like:

    cat image.png | imageviewer
    
  • Answers
  • erjiang

    ImageMagick's display program will do just that, assuming you pipe it something that it understands.

    cat image.png | display
    

    and it'll pop up a window showing that image.

  • Ignacio Vazquez-Abrams

    ImageMagick's display.

    display < foo.png
    
  • grawity

    On Linux (and likely BSDs), almost all of them – if you give /dev/stdin as the path. This includes: xloadimage, feh, Eye of GNOME (eog).

    eog /dev/stdin < "$file"
    

    (Not all of them work well with special files, though. GThumb failed the test, for example.)

  • tikiking1

    A FIFO could work with eog's lack of piping support:

    mkfifo ${tmpfilename};
    cat ${file} > ${tmpfilename} &;
    eog /dev/stdin < ${tmpfilename};
    rm ${tmpfilename};
    

    AFAIK this should work.


  • Related Question

    Free Huge Image Viewer/Editor (like Photoshop, but free)
  • Mehrdad

    Possible Duplicate:
    What is a good and free image editor? (Alternative to Photoshop)

    Does anyone know of any free image viewer (or preferably editor) that can work with very large images (say, 30,000 x 30,000 pixel PNG or JPGs)? I know Photoshop works with those well and renders them very well, but other programs are either slow or use huge amounts (gigabytes) of memory. The built-in Windows previewer is almost good, but it's still a bit slow and uses a bit too much memory, and it's also not an editor... does anyone know of any such software?

    Edit: A programming library would also be fine, so long as it works for large images.


  • Related Answers
  • darioo

    Try GIMP or Paint.net. Both are free image editors so you might have some luck with them.