问题描述
我正在将图像从.png转换为.eps,这极大地增加了文件大小。
任何人都可以解释为什么会这样,以及如何防止它增加这么多。
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.
我正在使用Unix : convert image.png image.eps
I'm using Unix convert: convert image.png image.eps
感谢您的帮助
推荐答案
将PNG文件(专为位图数据设计)转换为EPS (专为矢量数据而设计)总是会产生更大的文件大小,因为EPS实际上只是围绕原始图像数据包装EPS数据结构(它很可能不会像任何有效的方式存储在任何地方。一个PNG文件)。
Converting a PNG file (designed for bitmap data) into an EPS (designed for vector data) is always going to result in a larger file size, as the EPS is effectively just wrapping an EPS data structure around the original image data (which it most likely won't store in anywhere near as effective a manner as a PNG file).
正确的解决方案是将位图存储为PNG,将矢量图形存储为EPS或SVG等(即:使用适当的文件格式作为内容问题而不是试图强加一个毫无意义的一刀切方法。)
The correct solution is to store bitmaps as PNGs and vector graphics as EPS or SVG, etc. (i.e.: Use the appropriate file format for the content in question rather than attempting to impose a meaningless "one size fits all" approach.)
这篇关于PNG到eps转换文件大小大幅增加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!