HF RL Explorer

photo gallery thumbnails: edge case

photo gallery thumbnails: edge case: a task in smol-software-harbor (Harbor dataset). thumb size in thumbs/size.py only handles large landscape photos: portrait images get a long side of more than max side , and small images are enlarged. Make it follow its docstring: the longer side becomes max…

The task

`thumb_size` in `thumbs/size.py` only handles large landscape photos: portrait images get a long side of more than `max_side`, and small images are enlarged. Make it follow its docstring: the longer side becomes `max_side` (aspect ratio kept, shorter side rounded and at least 1), and images that already fit keep…

Part of efederici/smol-software-harbor.