命令:

$ convert -quality 100 -antialias -density 96 -transparent white -trim test.pdf test.png 

convert 命令有许多选项参数,本文用到的选项如下: 

  -trim:裁剪图像四周空白区域; 
  -transparent color:去除图像中指定的颜色; 
  -density geometry:设定图像的 DPI 值,若不明 DPI 值的概念,可参考《有关pt, px及DPI的知识》; 
  -antialias:让图像具有抗锯齿的效果; 
  -quality:图像压缩等级。

相关文章:

  • 2022-12-23
  • 2021-07-22
  • 2021-11-01
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2022-01-24
  • 2022-12-23
猜你喜欢
  • 2021-09-04
  • 2021-06-07
  • 2021-07-18
  • 2021-12-27
  • 2021-09-17
  • 2022-12-23
  • 2021-07-08
相关资源
相似解决方案