python function to convert data to jpg images code example
Example: python convert png to jpg
from PIL import Image
img = Image.open('image.png')
rgb_img = img.convert('RGB')
rgb_img.save('image.jpg')
from PIL import Image
img = Image.open('image.png')
rgb_img = img.convert('RGB')
rgb_img.save('image.jpg')