Skip to content

Commit dc6e1f7

Browse files
committed
fix: update blur function to match other samples
1 parent 8725706 commit dc6e1f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

functions/imagemagick/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def __blur_image(current_blob):
7070

7171
# Blur the image using ImageMagick.
7272
with Image(filename=temp_local_filename) as image:
73-
image.resize(*image.size, blur=16, filter="hamming")
73+
image.blur(radius=0, sigma=16)
7474
image.save(filename=temp_local_filename)
7575

7676
print(f"Image {file_name} was blurred.")

functions/v2/imagemagick/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def __blur_image(current_blob):
7373

7474
# Blur the image using ImageMagick.
7575
with Image(filename=temp_local_filename) as image:
76-
image.resize(*image.size, blur=16, filter="hamming")
76+
image.blur(radius=0, sigma=16)
7777
image.save(filename=temp_local_filename)
7878

7979
print(f"Image {file_name} was blurred.")

0 commit comments

Comments
 (0)