0
0

TIL You can remember PIL's crop argument order as top-left xy, bottom-right xy.

4mon 18d ago by lemmy.world/u/Kenetics in python

It is explained in the docs as (left, up. right, bottom), which isn't too memorable. So I had to keep looking it up (autocomplete is always random with if it wants to work today or not), until I realized that (left, up, right, bottom) is just the top-left xy and bottom-right xy of the bounding box, in that order.