Example: $pdftoppm -r 300 file.pdf output.ppm Appears to give the correct resolution but the metadata says that the resolution is 72x72. Build: pdftoppm version 0.12.3 OS: Linux Mint Gloria (but seems to reproduce on other OS's)
Created attachment 32387 [details] [review] make pdftoppm embed correct resolution Patch to make pdftoppm embed correct resolution.
How do you get the metadata of a ppm file?
Albert: $ identify -verbose filename.ppm
Nowhere i could find a PPM file description specification that mentions resolution as one of the fields of the metadata so i'm thinking it's the identify program here to blame for giving an information that really is not inside the file
I've commited Adrian's patch to embed the data when writing to png and jpeg. As said i didn't find that PPM can have that metadata so i'm going to close the bug as fixed, if you know that PPM has that metadata please reopen the bug and point to some url that explains how to set it.
Perhaps you're right about the ppm metadata, I'm not savvy enough to figure it out. Anyway, thanks for being swift in addressing this. Best, Kristian
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.