Using Ghostscript to convert JPEG to PDF

前端 未结 6 843
轻奢々
轻奢々 2020-12-13 02:50

What are the parameters that I should pass? The Ghostscript version I\'m using is 8.71.

6条回答
  •  [愿得一人]
    2020-12-13 03:10

    https://gitlab.mister-muffin.de/josch/img2pdf

    As mentioned by PleaseStand, GhostScript (edit: prior to v9.23) will decode the JPEG data, resulting in generation loss, as well as performance "ten to hundred" times worse than img2pdf.

    Edit: Ghostscript 9.23 (2018-03-21) added a "JPEG Passthrough" capability that resolves the generation-loss/performance issue.

    ImageMagick (i.e. convert) also decodes and re-encodes the images.

提交回复
热议问题