mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add webp to the list of image formats being scanned in comic archives
Actual support for the webp format will require a new build of ImageMagick, probably post Qt 5.
This commit is contained in:
parent
7d21c2d844
commit
aa4a24f2f0
@ -45,7 +45,7 @@ def find_pages(dir, sort_on_mtime=False, verbose=False):
|
||||
:param sort_on_mtime: If True sort pages based on their last modified time.
|
||||
Otherwise, sort alphabetically.
|
||||
'''
|
||||
extensions = ['jpeg', 'jpg', 'gif', 'png']
|
||||
extensions = {'jpeg', 'jpg', 'gif', 'png', 'webp'}
|
||||
pages = []
|
||||
for datum in os.walk(dir):
|
||||
for name in datum[-1]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user