I created a PNG file (763px by 600px at 72DPI) from a free image. I opened the image in GIMP and changed the DPI to 300 and saved it. After including it in a LaTeX file with
\includegraphics[scale=1.0]{file.png}
and running pdflatex
, the image looked good on the page. I wanted it a little bit larger, so I changed the DPI in GIMP to 600 and saved the file. After recompiling the source, the image is now much smaller on the output PDF. What have I done wrong?
dpi
stands fordots per inch
, so it's the pixel density (or "resolution"). Changing thedpi
does not change the number of pixels, it's always763x600
. At300 dpi
, your image takes up2.54in x 2in
(763 dots / 300 dots per inch), at600dpi
it only takes up1.27in x 1in
(763 dots / 600 dots per inch). What you should do, instead of setting the resolution in GIMP, is to say\includegraphics[width=4in]{file.png}
. This specifies the desired width, independent of the image resolution.