Skip to content

Commit

Permalink
Make docblock pass D205 and D415.
Browse files Browse the repository at this point in the history
  • Loading branch information
markpbaggett committed Dec 23, 2024
1 parent 236ac54 commit a1f442e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions iiif_prezi3/helpers/add_thumbnail.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a1f442e

Please sign in to comment.