MarjaE — try using -idpi -1 — that will force the input and output dpi to remain the same and thus k2pdfopt will not change the resolution of your .png file:
k2pdfopt -mode copy -idpi -1 myfile.png
By default, the input dpi is 2x the output dpi (-idpi -2), which results in k2pdfopt resampling your image at half the resolution if supplied with a .png file unless you are careful to specify output resolution, width, and height all together.
If you specify -odpi on the above command also, it will set the size of the PDF page.
|