从TIFF转换为无PIL的PNG
有人可以提出一种不使用PIL的情况下从Python转换为PNG的好方法吗? PIL似乎是最建议的方法,但它无法理解我的文件的数据格式。当我尝试使用PIL时,我会收到一个身份不明的图像错误:
from PIL import Image
im = Image.open('path/to/dir/my_file.tiff')
pil.unideifiedImageError:无法识别映像文件'my_file.tiff'
,
据我了解,这是因为这些是64位TIFF文件, PIL无法理解。那么,谁能提出另一种建议,我可以将这些图像转换为PNG?
Can someone please suggest a good way to convert from TIFF to PNG in python without using PIL? PIL seems to be the most suggested way to do this, but it cannot understand the data format of my files. When I try to use PIL, I get an unidentified image error:
from PIL import Image
im = Image.open('path/to/dir/my_file.tiff')
PIL.UnidentifiedImageError: cannot identify image file 'my_file.tiff'
As I understand it, this it because these are 64 bit TIFF files, which PIL cannot understand. So, can anyone suggest another way that I can convert these images to PNGs?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论