lundi 9 mars 2015

Preview image from pipe


I have a command line utility, let's called as: produce_image. So i can do the following in the Terminal:



$ produce_image > some.jpg
$ open some.jpg #opens Preview.app


also, I have ImageMagick installed and Xqartz too, so I can do the following:



$ produce_image | display #the display is a command from ImageMagick suite


The above opens an X11 window with the image.


Is possible achieve such image-view as with display also with Preview.app? e.g. looking for something like:



$ produce_image | Preview.app #of course, this isn't working
$ produce_image | /Applications/http://ift.tt/1tVP6I6 #nor this


Is possible preview the image with Preview.app without using intermediate file?





Aucun commentaire:

Enregistrer un commentaire