mirror of
https://github.com/qurator-spk/eynollah.git
synced 2025-07-01 06:59:54 +02:00
check_dpi: fix Pillow type detection
This commit is contained in:
parent
c52ef98821
commit
60cf0bddfd
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ def pil2cv(img):
|
|||
|
||||
def check_dpi(img):
|
||||
try:
|
||||
if isinstance(img, Image.__class__):
|
||||
if isinstance(img, Image.Image):
|
||||
pil_image = img
|
||||
elif isinstance(img, str):
|
||||
pil_image = Image.open(img)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue