
I have applied the approaches detailed in this post using ImageMagick, but they compromise the quality of the anti-aliasing that was previously satisfactory.Ĭan anyone advise me on how to solve the issue of obtaining a transparent background (which will always be black in color) while not affecting the anti-aliasing quality? Additionally, if the ImageMagick command that I used above was sub-optimal for generating a high-quality anti-aliased image, is there a way that I can achieve both anti-aliasing as well as background transparency by using ImageMagick alone? Any form of advice/tips would be much appreciated! However, ImageMagick seems to have more functionality in now converting the anti-aliased image such that the black background is transparent. So where this leaves me is that I am satisfied with the anti-aliasing that pdftoppm provides. In fact there hardly seems to be any anti-aliasing in the ImageMagick-generated image. However, I did not get as good-quality anti-aliasing using ImageMagick as I did with pdftoppm. The equivalent command (or so I think) using ImageMagick was:Ĭonvert +antialias -interpolate Nearest -density 2000 text.pdf -quality 90 -colorspace RGB text.png Pdftoppm -png -r 2000 text.pdf > text.png So far, the highest quality anti-aliased images that I can generate are using pdftoppm (for a given DPI resolution). After having read the answer to this post and one of the comments to the answer, I compared the convert function of ImageMagick against pdftoppm. I am trying to convert a LaTeX-generated PDF file to a PNG file with anti-aliasing and a transparent background (white text on a black background).
