在不增加图像大小的情况下提高 dvipng 的图像质量?
对于 dvipng,-D 选项会增加图像的 dpi,但也会增加图像大小,而 -Q 选项会改进抗锯齿功能,但效果还不够。有没有办法在不增加图像尺寸的情况下提高图像分辨率和质量?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我建议您使用
-D
和-Q
,然后使用 imagemagick 的mogrify
或类似的东西来缩小图像。外部程序可能会在良好的扩展方面做得更好。I would suggest that you use
-D
and-Q
, and then post-process the generated image using imagemagick'smogrify
or something similar to scale the image back. The external program will probably do a better job at doing good scaling.部分原因可能与 DVI 文件的渲染方式有关。使用 PDF 而不是 DVI 可能会更幸运,当我需要来自 LaTeX 源的 PNG 时,我就是这样做的。
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.
如果 -Q 选项有任何作用,则意味着您正在使用位图字体、PK 字体。这是 TeX 可用的最古老的字体格式,并且不会有真正好的性能。
我建议你安装FreeType,并重建dvipng。 FreeType 具有适当的抗锯齿功能和适当的提示。
您使用什么系统?
If the -Q option has any effect at all, this means that you are using bitmapped fonts, PK fonts. This is the oldest font format available to TeX, and will not have real good performance.
I suggest you install FreeType, and rebuild dvipng. FreeType has proper antialiasing with proper hinting.
What system are you using?