Projet

Général

Profil

0001-misc-fix-check-for-PDF-thumbnails-support-27722.patch

Frédéric Péters, 02 novembre 2018 14:56

Télécharger (881 octets)

Voir les différences:

Subject: [PATCH] misc: fix check for PDF thumbnails support (#27722)

 wcs/qommon/misc.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
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
-