Python PIL 圖像處理中模式爲"P"的含義以及與"RGB"之間的轉換

查看圖片的模式 from PIL import Image img = Image.open('xxx.gif') print(img.mode) 對於通常的 gif 圖片,你會獲得輸出 "P"。 其餘輸出有"1-二值圖",「L-灰度圖」,「RGB-三原色」"RGBA-三原色+透明度alpha"等。python P是什麼意思 P 能夠理解爲 palettised,這是由調色盤 palette演變而
相關文章
相關標籤/搜索