Skip to content

Commit 8675441

Browse files
Timo Altemeiermanisandro
authored andcommitted
Fix for removed constant Image.ANTIALIAS
1 parent e717a84 commit 8675441

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
@@ -140,7 +140,7 @@ def get_legend(self, service_name, layers_param, styles_param, format_param, par
140140
new_size = (
141141
int(img.width * scale), int(img.height * scale)
142142
)
143-
img = img.resize(new_size, Image.ANTIALIAS)
143+
img = img.resize(new_size, Image.LANCZOS)
144144
output = BytesIO()
145145
# NOTE: save as PNG to preserve any alpha channel
146146
img.save(output, "PNG")

0 commit comments

Comments
 (0)