mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
moved _webp into the PIL namespace
This commit is contained in:
parent
088c752e40
commit
8295e33390
|
@ -1,7 +1,7 @@
|
|||
from PIL import Image
|
||||
from PIL import ImageFile
|
||||
from io import BytesIO
|
||||
import _webp
|
||||
from PIL import _webp
|
||||
|
||||
def _accept(prefix):
|
||||
return prefix[:4] == b"RIFF" and prefix[8:16] == b"WEBPVP8 "
|
||||
|
|
|
@ -3,7 +3,7 @@ from tester import *
|
|||
from PIL import Image
|
||||
|
||||
try:
|
||||
import _webp
|
||||
from PIL import _webp
|
||||
except:
|
||||
skip('webp support not installed')
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user