mirror of
https://github.com/tanrax/guetzli-recursively.git
synced 2024-11-09 22:45:41 +01:00
Fixbug Round acurate
This commit is contained in:
parent
26ef41bfac
commit
c70ed2bbf5
@ -11,13 +11,13 @@ and Python 3.
|
||||
# Use
|
||||
|
||||
```bash
|
||||
python guetzli-recursively.py [folder]
|
||||
python3 guetzli-recursively.py [folder]
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
```bash
|
||||
python guetzli-recursively.py img
|
||||
python3 guetzli-recursively.py img
|
||||
```
|
||||
|
||||
out
|
||||
|
@ -38,6 +38,6 @@ for dirpath, dirnames, files in walk(top_dir):
|
||||
pass
|
||||
# Move temp to source
|
||||
rename(url_out, url)
|
||||
print('Save ' + str(100 - size_acurate) + '%')
|
||||
print('Save ' + str(round(100 - size_acurate, 2)) + '%')
|
||||
else:
|
||||
print('It is not necessary to optimize')
|
||||
|
Loading…
Reference in New Issue
Block a user