Add webp support
This commit is contained in:
@@ -40,7 +40,8 @@ _DEFAULT_CONFIG = {
|
||||
'google_tag_manager': '',
|
||||
'ignore_directories': [],
|
||||
'ignore_files': [],
|
||||
'img_extensions': ['.jpg', '.jpeg', '.png', '.gif', '.tif', '.tiff'],
|
||||
'img_extensions': ['.jpg', '.jpeg', '.png', '.gif', '.tif', '.tiff',
|
||||
'.webp'],
|
||||
'img_processor': 'ResizeToFit',
|
||||
'img_size': (640, 480),
|
||||
'img_format': None,
|
||||
|
||||
BIN
tests/sample/pictures/webp/_MG_7805_lossy80.webp
Normal file
BIN
tests/sample/pictures/webp/_MG_7805_lossy80.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 122 KiB |
BIN
tests/sample/pictures/webp/_MG_7808_lossy80.webp
Normal file
BIN
tests/sample/pictures/webp/_MG_7808_lossy80.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
@@ -62,11 +62,17 @@ REF = {
|
||||
'video': {
|
||||
'title': 'video',
|
||||
'name': 'video',
|
||||
'thumbnail': ('video/thumbnails/'
|
||||
'example%20video.tn.jpg'),
|
||||
'thumbnail': 'video/thumbnails/example%20video.tn.jpg',
|
||||
'subdirs': [],
|
||||
'medias': ['example video.ogv']
|
||||
}
|
||||
},
|
||||
'webp': {
|
||||
'title': 'webp',
|
||||
'name': 'webp',
|
||||
'thumbnail': 'webp/thumbnails/_MG_7805_lossy80.tn.webp',
|
||||
'subdirs': [],
|
||||
'medias': ['_MG_7805_lossy80.webp', '_MG_7808_lossy80.webp']
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user