What is the best way to output an image to a printer from the viewer?
Let's me answer instead of Dmitry 🙂
The best way of printing images is to save them in PDF file and then stream it to browser.
On other side you can stream JPEG or PNG image to browser and then call window.print() method from JavaScript, however in this case you have almost no way to control settings.