Is it possible to print an image from a terminal?
What kind of image? (jpeg, pdf, gif, tiff, ps, etc.)
What kind of terminal? (real console? terminal emulator under X?)
What kind of printer? (true Postscript? )
The short answer to your question is "yes". But you're probably wanting to ask "How do I print a XXX image from MATE terminal emulator?"
png from the mate-terminal
Brother HL 2240 laser printer
Perhaps you would consider it cheating--but since X is running, just start your favorite viewer from the terminal and print from inside the application?
For Eye of Mate it would be:
$eom /home//<someimage.png>
Then Image > Print from inside the application.
This seems like such a convoluted way to do it when a single mouse click from Caja would do the same thing, that I wonder if there is something special about your request that is not stated yet.
I need to do it from a terminal because I want to make a thunar custom action to run it.
That way, I just click on the file I want to print and print it without opening the slow Gimp.
I found that this works.
lp <name of image>
Sure.
I don't know or use Thunar--but surely there is a way to associate a different viewer of your choice to .png files rather than loading Gimp.
For me the default viewer is Eye of Mate. Gimp, Shotwell, and others are alternate choices.
I like using Eye of Mate cuz it's pretty quick.
I only use Gimp for editing.