Python pgmagick:将图像转换为PNG格式
我正在尝试将jpeg图像转换为png(rgb+α) 我尝试了下面的代码,但不起作用Python pgmagick:将图像转换为PNG格式,python,image-processing,pgmagick,Python,Image Processing,Pgmagick,我正在尝试将jpeg图像转换为png(rgb+α) 我尝试了下面的代码,但不起作用 img.write('path/to/file/png32:filename.png') 如何实现这一点?您需要使用: img.write('PNG32:path/to/file/filename.png')
img.write('path/to/file/png32:filename.png')
如何实现这一点?您需要使用:
img.write('PNG32:path/to/file/filename.png')