10 lines
159 B
Python
10 lines
159 B
Python
import sys
|
|
from PIL import Image
|
|
|
|
im = Image.open(sys.argv[1])
|
|
im = im.convert("RGBA")
|
|
buf = im.tobytes()
|
|
|
|
with open(sys.argv[2], 'wb') as f:
|
|
f.write(buf)
|