All Questions
1 question
2
votes
1
answer
1k
views
How to convert PNG to JPEG losslessly?
I've converted PNG to JPEG with both java and python PIL.
Python code :
from PIL import Image
img = Image.open('input.png')
img.save('output.jpg', 'JPEG', quality=100)
For converting the Java code ...