from pathlib import Path

root = Path(__file__).resolve().parent.parent
exts = ['.png', '.jpg', '.jpeg', '.gif', '.bmp', '.tiff']

for ext in exts:
    for p in root.rglob(f'*{ext}'):
        if p.is_file() and p.with_suffix('.webp').exists():
            print(str(p))
