-1
A
回答
0
您可以嘗試使用.blend
方法。
對於兩個圖像image1
和image2
:
from PIL import Image
image1 = Image.open(path1)
image2 = Image.open(path2)
new_image = Image.blend(image1, image2, alpha)
#save/do stuff
另外,如果要指定座標:
image1.paste(image2, (x, y), mask)
相關問題
- 1. Python枕頭Tkinter,破壞圖像,
- 2. 枕頭成像ImportError
- 3. Python枕頭更改像素的RGB值?
- 4. 用枕頭裁剪重疊圖像
- 5. 枕頭:拆分spritesheet到seprate圖像
- 6. 擴展的圖像(PIL /枕頭)
- 7. 使用枕頭的Python
- 8. 使用python枕頭列表生成圖像不起作用
- 9. 枕頭,Tkinter的,Python中,隱形圖像按鈕
- 10. 在Python枕頭中設置圖像分辨率
- 11. Python /枕頭:縮放兒童圖像,但保持父圖像的尺寸
- 12. 自動化簡單圖像編輯
- 13. 使用Python編輯圖像
- 14. 在枕頭中打開後移動圖像時發生PermissionError
- 15. 編輯動畫GIF頭使用Python
- 16. Python枕頭EXIF數據不返回
- 17. 使用錯誤蒙版的Python枕頭
- 18. 是什麼在枕頭的Python
- 19. Python枕頭不能在raspbian上工作
- 20. 返回使用Python和枕頭
- 21. 枕頭和numpy的,讓像素值
- 22. python枕頭(更好的PIL)編碼檢查bug
- 23. 圖像編輯
- 24. 使用低枕頭
- 25. 不同的圖像數據來自同一個來源與枕頭
- 26. 用於編輯圖像的Python包
- 27. 使用Python 3.4和枕頭和變換方法:AttributeError的:圖片
- 28. Python的 - 枕頭創建縮略圖錯誤
- 29. 如何使用PIL /枕頭PyScriptor(Python)的導入圖片
- 30. Django SystemCheckError說沒有安裝枕頭,但安裝了枕頭
我會嘗試,但我不知道該怎麼做,如果函數需要正確調整其中一項。 – HellOfACode