mirror of
https://github.com/tanrax/guetzli-recursively.git
synced 2025-07-01 12:05:42 +02:00
Update optimize
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user