[text] ываыва

Viewer

copydownloadembedprintName: ываыва
  1. from PIL import Image
  2.  
  3. # Open the image file
  4. with Image.open("UploadedImage1.jpg") as img:
  5.     # Resize the image
  6.     img_resized = img.resize((120, 50))
  7.  
  8.     # Save the resized image
  9.     img_resized.save("ResizedImage.jpg")
  10.  
  11. # Print a success message
  12. print("The image has been resized to 120x50 px and saved as ResizedImage.jpg")
  13.  
  14.  

Editor

You can edit this paste and save as new:


File Description
  • ываыва
  • Paste Code
  • 23 Apr-2024
  • 345 Bytes
You can Share it: