use LANCZOS filter
Browse files34 unmodified lines3536373839404134 unmodified linesnew_width = int((new_height / height) * width)# Resize the imageimg_resized = img.resize((new_width, new_height), Image.ANTIALIAS)print(f"Resized image to {new_width}x{new_height}.")# Save the resized image as 'resized_image.jpg'34 unmodified lines3536373839404134 unmodified linesnew_width = int((new_height / height) * width)# Resize the imageimg_resized = img.resize((new_width, new_height), Image.LANCZOS)print(f"Resized image to {new_width}x{new_height}.")# Save the resized image as 'resized_image.jpg'
app.py+1-1