views:

170

answers:

2

For dvipng, the -D option increases the dpi of the image but also increases the image size, and the -Q option improves antialiasing but doesn't do enough. Is there a way to increase the image resolution and quality without increasing image size?

A: 

I would suggest that you use -D and -Q, and then post-process the generated image using imagemagick's mogrify or something similar to scale the image back. The external program will probably do a better job at doing good scaling.

Alok
+1  A: 

Part of this may have to do with the way DVI files are rendered. You may have better luck using PDF instead of DVI, which is what I did when I needed PNGs from LaTeX sources.

Dietrich Epp