mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-13 17:02:12 -05:00
Fix fallback logic in sphinx.utils.images:get_image_size()
This commit is contained in:
1 parent
906bf68cd8
commit
e48dd0e14b
1 file changed
+1
-1
@@ -26,7 +26,7 @@ def get_image_size(filename):
|
||||
if size[0] == -1:
|
||||
size = None
|
||||
|
||||
if Image: # fallback to PIL
|
||||
if size is None and Image: # fallback to PIL
|
||||
im = Image.open(filename)
|
||||
size = im.size
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user