dpi parameter has no effect #15

Closed
opened 3 years ago by josch · 0 comments
josch commented 3 years ago
Owner

By josch on 2015-03-15T09:41:51.503Z

Created by: ekianjo

I tried specifying different dpi arguments to the script but it does not make any difference in the final pdf, no matter if I choose a very low dpi or a high one (i tried from 10 to 300). Am I doing something wrong ?

Imported comments:

By josch on 2013-10-20 18:07:38 UTC

What difference do you expect? It changes the size of the pdf MediaBox. If you can show an instance where this does not happen, then please show an example.

By ekianjo on 2013-10-21 00:49:57 UTC

I expected that reducing the dpi would make the overall pdf quality worse, for example, in terms of picture resolution. Actually there is no difference no matter which dpi figure I input as parameter in terms of quality.

By josch on 2013-10-21 04:51:33 UTC

The point of img2pdf is to convert images into pdf format whithout any quality loss at all. The term dpi means "dots per inch" so while the number of pixels stays the same, those pixels are stretched over a differently sized area for different dpi settings. Had you checkedd how big your pdf was in terms of width/height you would've seen a difference.

*By josch on 2015-03-15T09:41:51.503Z* *Created by: ekianjo* I tried specifying different dpi arguments to the script but it does not make any difference in the final pdf, no matter if I choose a very low dpi or a high one (i tried from 10 to 300). Am I doing something wrong ? **Imported comments:** *By josch on 2013-10-20 18:07:38 UTC* What difference do you expect? It changes the size of the pdf MediaBox. If you can show an instance where this does not happen, then please show an example. *By ekianjo on 2013-10-21 00:49:57 UTC* I expected that reducing the dpi would make the overall pdf quality worse, for example, in terms of picture resolution. Actually there is no difference no matter which dpi figure I input as parameter in terms of quality. *By josch on 2013-10-21 04:51:33 UTC* The point of img2pdf is to convert images into pdf format whithout any quality loss at all. The term dpi means "dots per inch" so while the number of pixels stays the same, those pixels are stretched over a differently sized area for different dpi settings. Had you checkedd how big your pdf was in terms of width/height you would've seen a difference.
josch closed this issue 3 years ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: josch/img2pdf#15
Loading…
There is no content yet.