From a1f442ee4e1cf2fa30e5e63ad1a10f6f4c973d50 Mon Sep 17 00:00:00 2001 From: Mark Baggett Date: Mon, 23 Dec 2024 12:26:27 -0600 Subject: [PATCH] Make docblock pass D205 and D415. --- iiif_prezi3/helpers/add_thumbnail.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/iiif_prezi3/helpers/add_thumbnail.py b/iiif_prezi3/helpers/add_thumbnail.py index e8e0b7c..c3d4f8d 100644 --- a/iiif_prezi3/helpers/add_thumbnail.py +++ b/iiif_prezi3/helpers/add_thumbnail.py @@ -23,10 +23,11 @@ def add_thumbnail(self, image_url, **kwargs): return new_thumbnail def create_thumbnail_from_iiif(self, url, preferred_width=500, **kwargs): - """Adds an image thumbnail to a manifest or canvas based on a IIIF service. If there is a sizes property, it - returns the thumbnail that is closest to the preferred width but larger. If no sizes property exists and it's - not level zero image service, it returns a thumbnail with the exact preferred width. Else, it returns the level - `full/full` or `full/max`. + """Adds an image thumbnail to a manifest or canvas based on a IIIF service. + + If there is a sizes property, it returns the thumbnail that is closest to the preferred width but larger. If no + sizes property exists and it's not level zero image service, it returns a thumbnail with the exact preferred + width. Else, it returns the level `full/full` or `full/max`. Args: url (str): An HTTP URL which points at a IIIF Image response.