3

I want to print an image with a size of 300x300 pixels, I've used this command
$ lpr -P Myprinter imagefile.png
The image was printed fit-to-page by default.

How can I print this image without scaling?

1 Answer 1

2

You have to configure the ppi of your printer using the ppi flag:

The ppi=value value is a number from 1 to 1200 specifying the resolution of the image in pixels per inch. An image that is 3000x2400 pixels will print 10x8 inches at 300 pixels per inch, for example. If the specified resolution makes the image larger than the page, multiple pages will be printed to satisfy the request.

more info: LPR Command-Line Printing and Options

2
  • I'll try and let you know.
    – Ram
    Mar 23, 2016 at 17:10
  • 1
    Throwing "DPI" for search's sake… Another viable option is -o natural-scaling=XX, where XX is the expected scaling in %( from 1 to 800). Sep 22, 2017 at 14:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .