Answers for "use python to change image format from png to jpg"

0

python convert png to jpg

from PIL import Image

img = Image.open('image.png')
rgb_img = img.convert('RGB')
rgb_img.save('image.jpg')
Posted by: Guest on February-24-2021

Python Answers by Framework

Browse Popular Code Answers by Language