我想在python脚本的末尾打开来自python的windows图片库
我试着:
os.system("C:\\Program Files (x86)\\Windows Live\\Photo Gallery\\WLXPhotoGallery.exe");
我得到了:
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
有什么办法解决这个问题吗?
当我尝试用PIL打开EPS或SVG图像时,我遇到了几个问题。
打开EPS
from PIL import Image
test = Image.open('test.eps')
结尾为:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\Lib\site-packages\PIL\Image.py", line 1965, in open
return factory(fp, fi
我正在尝试使用Python中的枕头库。我正在编写基本代码来打开我保存的图片。
但每次我运行代码,上面都写着
"can't open file 'C:\Users\saadn\PycharmProjects\Giraffe\main.py':
[Errno 2] No such file or directory".
保存图片的路径是"C:\Users\saadn\PycharmProjects\Giraffe\DirectoryAssign1"。
现在我知道错误中写着"Girrafe\main.py“。但是我根本没有一个名为ma
我有一些从android手机上导入的图片,当我试图在PC上打开时,我无法正确地打开它。我可以通过notepad++打开映像并将部件ICC_PROFILE修改为ICC_PROFILX来解决这个问题--我尝试了这个python片段,但是图像被破坏了。
with open("Sample.jpg") as r:
text = r.read().replace("ICC_PROFILE", "ICC_PROFILX")
with open("Sample.jpg", "w") as w:
w.write(text)