Python, Processing, Image, Pillow.
Image.open('example.jpg') # Resize the image resized_image = image.resize((300, 200)) # Save the resized image to a new file resized_image.save('resized_example.jpg') In this example, we open an image, resize it to a width of 300 pixels and a height of 200 pixels, and then save the modified image