Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用 python 的 xlwt 模块将图像插入到 xls 中。而且 xlwt 模块似乎只支持 .bmp 图像。
那么在 unix 中压缩 .bmp 图像而没有太多质量损失的最佳方法是什么?
最初图像大小约为 3.2 MB,我想减少到小于 350KB,而不会损失太多质量。
位图文件格式并不真正支持压缩,因此如果不降低分辨率或颜色,您将无法减小文件大小。
因此,如果您只能使用 bmp,我恐怕没有办法。