-- PNG 마다: 여백을 자르고 절반으로
half :: Image -> Image
half img = resize (round (w / 2), round (h / 2)) t
where t = trim img -- 가장자리 여백 제거
(w, h) = size t -- 잘린 뒤 크기를 다시 읽는다
-- for entry in fg('./**/*.png'): half entry → entry.replace(.png, .half.png)
-- crop: extract { left = 50, top = 50, width = 200, height = 400 }