py2exe&qt4/qimage

我正在尝试转换Python(使用PyQt4的图像大小调整脚本)脚本
,但对jpeg和tiff图像格式的支持位于
Qt4.1\plugins\ImageFormat(DLL文件)以及脚本转换时间
EXE文件不支持jpeg和tiff.
我尝试使用所有的文件格式
脚本:
Tmp1=QImage('Image/type.bmp')
Tmp2=QImage('Image/type.gif')
Tmp3=QImage('Image/type.jpg')
Tmp4=QImage('Image/type.png')
Tmp5=QImage('Image/type.tif')
但当我将脚本转换为可执行文件时,它不起作用.
关于如何在exe中包含支持的jpeg和tiff图像格式有什么建议吗?

# 回答1


阿尔乔萨写道:
需要将插件捆绑成数据文件:http://docs.python.org/dist/node12.html

标签: python

添加新评论