Answers for "convert jpeg file to png in python"

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
0

Convert .tif images files to .jpeg in python

from PIL import Image
im = Image.open('test.tiff')
im.save('test.jpeg')
Posted by: Guest on September-05-2021

Code answers related to "convert jpeg file to png in python"

Python Answers by Framework

Browse Popular Code Answers by Language