mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add imghdr test for webp
This commit is contained in:
parent
1f213c7948
commit
11153b1c77
@ -68,6 +68,12 @@ def test_tiff(h, f):
|
||||
|
||||
tests.append(test_tiff)
|
||||
|
||||
def test_webp(h, f):
|
||||
if h[:4] == b'RIFF' and h[8:12] == b'WEBP':
|
||||
return 'webp'
|
||||
|
||||
tests.append(test_webp)
|
||||
|
||||
def test_rgb(h, f):
|
||||
"""SGI image library"""
|
||||
if h[:2] == '\001\332':
|
||||
|
Loading…
x
Reference in New Issue
Block a user