A
A
Alexander Shilov2019-03-28 16:19:59
Python
Alexander Shilov, 2019-03-28 16:19:59

Is this conversion correct?

Faced such a problem that through Total CMD I changed file extensions and hyperlinks began to open incorrectly in Excel. Decided to quickly throw the conversion. Actually the question is, tell me, does it convert correctly? And in general, does it convert in this case? Or just change the extension, without changing the format?

from PIL import Image

Image.open(r'4898860.png').save(r'k.jpg', 'JPEG')

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Tallmange, 2019-03-28
@p00h

PNG -> JPG format conversion is done.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question