New answers tagged images
There are several factors to consider before choosing a directory path. The best directory is the one that has enough capacity to store the expected volume of files, that has the right level of protection and finally that has no risk to be overwritten or messed by standard packages. /srv/www or /srv/images are fine and specified in the FHS standard while ...
Store them wherever you want! If it's your file system, then it's your preference. Just make sure you have the correct permissions in place. Edit: As @jlliagre stated below, the above is an exaggeration, as there are some file system locations that would be absolutely unsuitable for storing these images. If you have multiple users and you want them to ...
There are indications, that the entry MimeType=image/* would do the trick: [Desktop Entry] Name=Convert Exec=convert.sh MimeType=image/*;
You can also do this easily with the netpbm toolkit: anytopnm inputfile | ppmtopgm | pgmtopbm > outputfile ppmtopgm converts to a grayscale image, pgmtopbm converts to a black-or-white image, and we then redirect the output to a file. It will be in the pbm format; if you want something more common, you'll have to add an output convertor (e.g., pnmtopng ...
-monochrome from ImageMagick is an option that uses some smart dithering, and makes the output much more visible than -threshold if you intend it for human consumption: convert -monochrome signature.png out.png Does not make much difference for such a simple image, but for larger ones, it is striking.
The following is only a rough idea, no ready solution (especially no code!). I would convert a sample of the small graphic and the screenshots to a raw (uncompressed) format (TGA has abolultely no compression, it's just a complete dump of every pixel) and then grep for the graphic in the screenshot file. Then calculate the position. For the calculation you ...
The ImageMagick "display" program will do it. Display the image with display filename.png, hold the right button to bring up the menu, select Image info, and scroll down.
I am sorry to say it does not work through tmux.
If you're on OS X, iTerm 2 supports displaying inline images: As you can imagine, this can be highly useful when you just want to display an image without going in and opening up Preview.app or having to open the Finder to the image and hitting spacebar on the image. The feature is documented at iTerm2's feature page
Top 50 recent answers are included