Skip to content

Commit a78e031

Browse files
Timo Altemeiermanisandro
authored andcommitted
Fix for removed constant Image.ANTIALIAS
1 parent 755d7fb commit a78e031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/legend_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def get_legend(self, service_name, layer_param, styles_param, format_param, para
124124
new_size = (
125125
int(img.width * scale), int(img.height * scale)
126126
)
127-
img = img.resize(new_size, Image.ANTIALIAS)
127+
img = img.resize(new_size, Image.LANCZOS)
128128
output = BytesIO()
129129
# NOTE: save as PNG to preserve any alpha channel
130130
img.save(output, "PNG")

0 commit comments

Comments
 (0)