240 X 320 Pixels Converter ^new^

def convert_to_240x320(input_path, output_path): img = Image.open(input_path) # Resize to fit within 240x320, keeping aspect ratio img.thumbnail((240, 320))