79601123

Date: 2025-04-30 21:36:49
Score: 1.5
Natty:
Report link

It turns out the right way to do this is with a context manager.

def get_convex_hull(file) -> PointCloud:
    with Color("srgba(0,0,0,0)") as transparent:
        with image.Image(filename=file) as img:
            points = img.convex_hull(background=transparent)

            return points
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: mechanical-girl