79728298

Date: 2025-08-07 08:40:20
Score: 1.5
Natty:
Report link

from PIL import Image

# Buka gambar

img = Image.open("IMG-20250807-WA0018.jpg")

# Tentukan area potong (left, upper, right, lower)

# Ini nilai contoh, bisa disesuaikan tergantung ukuran asli dan posisi orang

width, height = img.size

left = int(width * 0.3)

right = int(width * 0.7)

upper = 0

lower = height

# Potong gambar

cropped_img = img.crop((left, upper, right, lower))

# Simpan hasil

cropped_img.save("hasil_crop.jpg")

cropped_img.show()

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Akun Google