mirror of
https://github.com/tanrax/guetzli-recursively.git
synced 2024-11-14 23:35:40 +01:00
Update optimize
This commit is contained in:
parent
7b2c882f66
commit
a9cf29a7dd
@ -10,9 +10,10 @@ TYPES = ('jpeg',)
|
||||
|
||||
for dirpath, dirnames, files in walk(top_dir):
|
||||
for name in files:
|
||||
if what(path.join(dirpath, name)) in TYPES:
|
||||
url = path.join(dirpath, name)
|
||||
# Check type
|
||||
if what(url) in TYPES:
|
||||
# Get urls
|
||||
url = path.join(dirpath, name)
|
||||
print(url)
|
||||
url_out = path.join(top_dir, TEMP_FILE)
|
||||
# Remove temp image
|
||||
|
Loading…
Reference in New Issue
Block a user