DPI values not having any affect #6

Closed
opened 2021-04-25 19:57:28 +00:00 by josch · 0 comments
Owner

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

Created by: ykessler

I've tried various dpi values on multiple files, but they seem to have no effect- output is always the same file size/ resolution

The following examples yield the exact same file size and resolution:

pdf_bytes = img2pdf.convert(images, dpi=50, x=None, y=None)
pdf_bytes = img2pdf.convert(images, dpi=150, x=None, y=None)
pdf_bytes = img2pdf.convert(images, dpi=300, x=None, y=None)

Likewise on the command line, these all yield the same results:

img2pdf --dpi 50 -o output.pdf input.jpg
img2pdf --dpi 300 -o output.pdf input.jpg

Tested with both 150 res .jpg and .pngs, both of which saw degraded res on output.

Imported comments:

By josch on 2015-01-21 10:01:52 UTC

I made a new release, do you still see the problem?


By josch on 2017-01-21T07:50:42.537Z


Closing because the problem should be fixed. Please reopen if you have some data to show otherwise.


By josch on 2017-01-21T07:50:42.830Z


Status changed to closed

*By josch on 2015-03-15T09:41:47.291Z* *Created by: ykessler* I've tried various dpi values on multiple files, but they seem to have no effect- output is always the same file size/ resolution The following examples yield the exact same file size and resolution: ```python pdf_bytes = img2pdf.convert(images, dpi=50, x=None, y=None) pdf_bytes = img2pdf.convert(images, dpi=150, x=None, y=None) pdf_bytes = img2pdf.convert(images, dpi=300, x=None, y=None) ``` Likewise on the command line, these all yield the same results: ``` img2pdf --dpi 50 -o output.pdf input.jpg img2pdf --dpi 300 -o output.pdf input.jpg ``` Tested with both 150 res .jpg and .pngs, both of which saw degraded res on output. **Imported comments:** *By josch on 2015-01-21 10:01:52 UTC* I made a new release, do you still see the problem? --- *By josch on 2017-01-21T07:50:42.537Z* --- Closing because the problem should be fixed. Please reopen if you have some data to show otherwise. --- *By josch on 2017-01-21T07:50:42.830Z* --- Status changed to closed
josch closed this issue 2021-04-25 19:57:28 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#6
No description provided.