Monday, 20 May 2013

Quality loss at adding images to a latex file

Quality loss at adding images to a latex file

I have a latex file (compiled in pdf-latex) with some images in pdf added via the \includegraphics command. The problem is that the images are really big (up to 10MB) and the output file is too large (more than 30MB).
The images have been obtained via the splot command in gnuplot but there are a lot of points in the splot.
I have tried to get the images in other formats (jpg, png basically) since the file size is considerably lower and thus the size of my resulting pdf is also lower. But when I include this files in my latex document the images lose a lot of quality (even though they have OK quality when viewed separately).
How could I get a small pdf file from pdflatex without sacrificing too much quality on the images? I suppose that the problem lies in resizing the image from the pdf-latex but can't solve it. Or in other words, how can I obtain smaller .pdf images (or other format accepted by pdf-latex) without losing too much quality when added to the pdf file?
The latex command is \includegraphics[width=7cm]{file.pdf}. Note that I have to resize them to fit 7cm width.

No comments:

Post a Comment