pdf 轉成 jpg @ 工作小錦囊 :: 隨意窩 Xuite日誌
  • 關鍵字
    linuxOpenSUSErpmDesktopqmailnagioszyppersshphpwindowstrac打包uploadrnmsputtyvncmonitoringsocatperlhtmlproxymysqlsocksnagvisterminalvpopmailrrdtoolmrtgciscopamapache2snmpnetworkmtadbdovecotdnspop3imapipapacheshellpicasapdfpatchvimfirefoxmp3qtopensusemore
  • 常用連結
    1. 沒有新回應!






  • 如何使用RSS
    Powered by Xuite
    2007-05-30 15:11 pdf 轉成 jpg
    平均分數:0 顆星    投票人數:0
    我要評分:
    利用 imagemagick 即可

    但是轉出來的效果就不怎麼樣, 經過下面的解釋: http://www.imagemagick.org/Usage/text/#postscript
    As you can see postscript converted to the default "-density" of of 72 dpi, often does not look as good as it should, with only a minimal amount of anti-aliasing. This is particularly the case when dealing with postscript fonts, which are not designed to work at these low-resolutions. To improve this, you can have "ghostscript" draw at a higher resolution (or image "-density"). You can then "-resample" (a specalized resize using image densities) this larger image back to a more 'normal' screen resolution density.

    convert -density 196 ps_version.ps'[0]' -resample 72 \
    -trim +repage -bordercolor white -border 3 ps_version.gif

    The value '196' is 3 times the final 72dpi, which means when "-resample" is used approximately 3×3 pixels are merged down into each pixel. This produces better anti-aliasing pixels along the edges of the text improving the overall look of the result.

    所以我需要 pdf viewer 裏面 300%  顯示的高解析度圖形的話,
    就這樣使用:
    convert -density 196 a.pdf a.jpg

    太棒了!

    蚯蚓 / Xuite日誌 / 回應(0) / 引用(1) / 好文轉寄
    回應