Kilian / Trimage

A cross-platform tool for optimizing PNG and JPG files.
http://trimage.org
MIT License
706 stars 55 forks source link

Fix #77 #82

Closed Mte90 closed 3 years ago

Mte90 commented 3 years ago

This fix https://github.com/Kilian/Trimage/issues/77 As debian user this fix the issue for me

Kilian commented 3 years ago

My python is very rusty, what does the "{0}" return?

Mte90 commented 3 years ago

With python 3 the string substitution has improved with this system. In this way you don't need to specify the kind of variable and has a function that has more checks like the one we need. If you use the format function with %s there is an error so I changed also that and now works.