-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. 擴展的圖像(PIL /枕頭)
- 4. 枕頭:拆分spritesheet到seprate圖像
- 5. 使用枕頭的Python
- 6. 枕頭,Tkinter的,Python中,隱形圖像按鈕
- 7. 使用python枕頭列表生成圖像不起作用
- 8. 在Python枕頭中設置圖像分辨率
- 9. Python /枕頭:縮放兒童圖像,但保持父圖像的尺寸
- 10. 在枕頭中打開後移動圖像時發生PermissionError
- 11. 編輯動畫GIF頭使用Python
- 12. Python枕頭不能在raspbian上工作
- 13. 是什麼在枕頭的Python
- 14. 返回使用Python和枕頭
- 15. 圖像編輯
- 16. 使用低枕頭
- 17. 不同的圖像數據來自同一個來源與枕頭
- 18. 如何使用PIL /枕頭PyScriptor(Python)的導入圖片
- 19. 比例的圖像 - 維護位置 - 枕頭
- 20. 如何將枕頭圖像對象保存到Django ImageField中?
- 21. 枕頭使圖像比以前更大尺寸
- 22. 保存枕頭圖像時如何正確設置DPI?
- 23. 如何在Django上將枕頭處理圖像上傳到S3?
- 24. 錯誤在通過枕頭文庫導入圖像
- 25. 如何使用枕頭將圖像粘貼到較大的圖像上?
- 26. Python編輯器自動完成代碼?
- 27. 通過MemoryStream編輯圖像(來自FTP)
- 28. 圖像編輯器
- 29. javascript圖像編輯
- 30. Java - 編輯圖像
我會嘗試,但我不知道該怎麼做,如果函數需要正確調整其中一項。 – HellOfACode