from PIL import Image

def crop_team():
    img = Image.open('images/group.jpg')
    width, height = img.size
    
    # Crop 1: Left person
    # Approximate regions based on 1600x1200
    p1 = img.crop((50, 200, 550, 1000))
    p1.save('images/member1.jpg')
    
    # Crop 2: Middle person
    p2 = img.crop((550, 250, 1050, 1050))
    p2.save('images/member2.jpg')
    
    # Crop 3: Right person
    p3 = img.crop((1050, 250, 1550, 1050))
    p3.save('images/member3.jpg')
    
    # Process member 4 (the one with the car)
    m4 = Image.open('images/member4.png').convert('RGB')
    # Focus on the person, not the car
    m4_thumb = m4.crop((550, 50, 1000, 650)) 
    m4_thumb.save('images/member4_profile.jpg')

if __name__ == "__main__":
    crop_team()
