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
|
# Use
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python guetzli-recursively.py [folder]
|
python3 guetzli-recursively.py [folder]
|
||||||
```
|
```
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python guetzli-recursively.py img
|
python3 guetzli-recursively.py img
|
||||||
```
|
```
|
||||||
|
|
||||||
out
|
out
|
||||||
|
@ -38,6 +38,6 @@ for dirpath, dirnames, files in walk(top_dir):
|
|||||||
pass
|
pass
|
||||||
# Move temp to source
|
# Move temp to source
|
||||||
rename(url_out, url)
|
rename(url_out, url)
|
||||||
print('Save ' + str(100 - size_acurate) + '%')
|
print('Save ' + str(round(100 - size_acurate, 2)) + '%')
|
||||||
else:
|
else:
|
||||||
print('It is not necessary to optimize')
|
print('It is not necessary to optimize')
|
||||||
|
Loading…
Reference in New Issue
Block a user