When saving a JPEG, the compression ratio may be controlled using the
quality keyword argument which is an integer with values in [1, 100]
where 1 is worst quality and smallest file size, and 100 is best
quality and largest file size (default 75). This is only available
when using the PIL and imageio plugins.
您没有在save命令中提供图像插件。请参见https://scikit-image.org/docs/dev/api/skimage.io.html#skimage.io.imsave,其中写道:
我发现了一个很好的工具,叫做ImageMagick,它可以安装在linux上。 为了在python代码中调用它,我就这样做了。在
相关问题 更多 >
编程相关推荐