Skip to content

Commit b4ed367

Browse files
minchinwebjustinmayer
authored andcommitted
Add doc string for process_image()
1 parent 6ea07fc commit b4ed367

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pelican/plugins/image_process/image_process.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,12 @@ def try_open_image(path):
719719

720720

721721
def process_image(image, settings):
722+
"""Actually process the image.
723+
724+
Copies over the Exif tags, if ExifTool is available.
725+
726+
Returns (int, int): tuple of the width and height of the resulting image.
727+
"""
722728
# remove URL encoding to get to physical filenames
723729
image = list(image)
724730
image[0] = unquote(image[0])

0 commit comments

Comments
 (0)