PNG to eps conversion massive increase in file size

前端 未结 5 1368
走了就别回头了
走了就别回头了 2020-12-24 02:18

I\'m converting an image from .png to .eps and it hugely increases the file size. Can anyone explain why this is, and how to prevent it increasing so much.

I\'m usin

5条回答
  •  醉梦人生
    2020-12-24 03:16

    convert indeed blows up the file size because it stores the graphics data uncompressed. A better compression and smaller file size can be achieved by e.g. manually converting using gimp, or by doing

    convert image.png image.pdf
    pdftops -eps image.pdf
    

    In my case, for example, this results in an eps file with a size of 0.3 MB instead of 5.2 MB (when using convert file.png file.eps directly).

提交回复
热议问题