Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/18.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何使用枕头和LZW压缩保存ICC配置文件 问题_Python_Python 3.x_Image_Compression_Python Imaging Library - Fatal编程技术网

Python 如何使用枕头和LZW压缩保存ICC配置文件 问题

Python 如何使用枕头和LZW压缩保存ICC配置文件 问题,python,python-3.x,image,compression,python-imaging-library,Python,Python 3.x,Image,Compression,Python Imaging Library,尝试使用icc_配置文件保存图像时,配置文件不会与图像的其余部分一起保存。tiff信息正在正确复制,但当我再次打开图像时,图像信息中没有icc_配置文件 pilImage.save(savePath, "Tiff", compression = 'tiff_lzw', tiffinfo = { 282: 300, 283: 300 ,296: 2}, icc_profile = oldtags.info.get('icc_profile')) 我能够打印出oldtags.i

尝试使用icc_配置文件保存图像时,配置文件不会与图像的其余部分一起保存。tiff信息正在正确复制,但当我再次打开图像时,图像信息中没有icc_配置文件

pilImage.save(savePath, "Tiff", compression = 'tiff_lzw', tiffinfo = { 282: 300, 283: 300 ,296: 2}, icc_profile = oldtags.info.get('icc_profile'))
我能够打印出oldtags.info.get('icc_profile')以及图像中显示的内容

我使用的是python 3.7.4和最新版本

如何保存颜色配置文件