Search found 3 matches

by monpantalon
2018-12-12T11:45:01-07:00
Forum: Users
Topic: [solved] PNG to PDF with specific size and pixel density
Replies: 4
Views: 9353

Re: [solved] PNG to PDF with specific size and pixel density

Makes sense; changing the unit to PixelsPerCentimenter also works, since I get a cleaner fraction.
Thanks again!
by monpantalon
2018-12-11T12:21:15-07:00
Forum: Users
Topic: [solved] PNG to PDF with specific size and pixel density
Replies: 4
Views: 9353

Re: PNG to PDF with specific size and pixel density

OK,

Code: Select all

    convert $i -scale 1311x1819 -units PixelsPerInch -density 300x300 $i.pdf
seems to do the job!
Thanks for your help, snibgo!
By the way, the generated pdf seems a bit fuzzy when zoomed in, would setting the dpi to something making for a rounder division help?
by monpantalon
2018-12-11T11:28:12-07:00
Forum: Users
Topic: [solved] PNG to PDF with specific size and pixel density
Replies: 4
Views: 9353

[solved] PNG to PDF with specific size and pixel density

Hi, I have a PNG image with arbitrary physical dimension but 222 x 308 pixels, and would like to make it into a PDF with physical dimension 111 x 154 millimeters and >= 300dpi, with no smoothing, i.e. visible pixels. I have tried running the command convert in.png -size 111x154 -units millimeter out ...