Update app.py
Browse files175 unmodified lines176177178179180181182175 unmodified linesimage = Image.open(input_path)# Resize the image while maintaining the aspect ratioimage.thumbnail((new_width, new_height))# Save the resized image to the specified output pathimage.save(output_path)175 unmodified lines176177178179180181182175 unmodified linesimage = Image.open(input_path)# Resize the image while maintaining the aspect ratioimage.resize((new_width, new_height), Image.LANCZOS)# Save the resized image to the specified output pathimage.save(output_path)
app.py+1-1