使用ImageMagick将PDF转换为PNG [英] Convert PDF to PNG using ImageMagick

查看:917
本文介绍了使用ImageMagick将PDF转换为PNG的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用ImageMagick,我应该使用什么命令将PDF转换为PNG?我需要最高质量,最小的文件大小。这就是我到目前为止(顺便说一下):

using ImageMagick, what command should i use to convert a PDF to PNG? I need highest quality, smallest file size. this is what I have so far (very slow by the way):

convert -density 300 -depth 8 -quality 85 a.pdf a.png

看看Gmail在用户查看PDF时的作用,质量太棒了,文件大小非常小。 DPI只有96(我必须设置密度为300以获得任何体面)。谁知道GMail是怎么做到的?谢谢。

Looking at what Gmail does when a user "view" a PDF, the quality is awesome and the file size very minimal. The DPI is just 96 (I have to set a density of 300 to get anything decent). Anyone know how GMail does it? Thanks.

推荐答案

当你将密度设置为96时,它看起来不是很好吗?

when you set the density to 96, doesn't it look good?

当我尝试它时,我看到保存为jpg导致更好的质量,但更大的文件大小

when i tried it i saw that saving as jpg resulted with better quality, but larger file size

这篇关于使用ImageMagick将PDF转换为PNG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆