pgmagick:将图像转换为PNG foramt

时间:2015-10-29 03:46:28

标签: python image-processing pgmagick

我正在尝试将jpeg图像转换为png(rgb +α)。

我尝试了以下代码,但它不起作用。

img.write('path/to/file/png32:filename.png')

我如何实现这一目标?

1 个答案:

答案 0 :(得分:0)

您需要使用:

img.write('PNG32:path/to/file/filename.png')
相关问题