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.
我正在尝试将 jpeg 图像转换为 png(rgb+α)。
我尝试了以下代码,但它不起作用。
img.write('path/to/file/png32:filename.png')
我如何实现这一目标?
你需要使用:
img.write('PNG32:path/to/file/filename.png')