Skip to content

Commit

Permalink
Allow local indexing of gif format images (#9)
Browse files Browse the repository at this point in the history
Allow local indexing of gif format images
  • Loading branch information
hv0905 authored Dec 29, 2023
2 parents dec1f92 + 0741848 commit 29342cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/local_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async def main(args):
for item in root.glob('**/*.*'):
counter += 1
logger.info("[{}] Indexing {}", str(counter), str(item.relative_to(root)))
if item.suffix in ['.jpg', '.png', '.jpeg', '.jfif', '.webp']:
if item.suffix in ['.jpg', '.png', '.jpeg', '.jfif', '.webp', '.gif']:
imgdata = copy_and_index(item)
if imgdata is not None:
buffer.append(imgdata)
Expand Down

0 comments on commit 29342cc

Please sign in to comment.