0001-misc-fix-check-for-PDF-thumbnails-support-27722.patch
wcs/qommon/misc.py | ||
---|---|---|
561 | 561 | |
562 | 562 | |
563 | 563 |
def can_thumbnail(content_type): |
564 |
if content_type == 'application/pdf' and not (HAS_GM and Image):
|
|
565 |
return False
|
|
564 |
if content_type == 'application/pdf': |
|
565 |
return bool(HAS_GM and Image)
|
|
566 | 566 |
if content_type and content_type.startswith('image/'): |
567 | 567 |
return bool(Image is not None) |
568 | 568 |
return False |
569 |
- |