Cropping images should be easy

Let's begin with an AI written feature description of a modern image cropping function:

💡
Crop images to remove any unwanted elements with precision and finesse. Utilizing my experience and expertise, I can craft your desired product from a photo with detailed accuracy. Crafting with care and attention-to-detail, no visual imperfection will be left in the result; leaving you with an image that accurately reflects your vision. By employing creative techniques and incorporating subtle nuances, I strive to provide a final product that is truly remarkable.

Nothing mind-blowing, just want to highlight one part:

💡
By employing creative techniques and incorporating subtle nuances

If you asked me last week, hey man, how to implement cropping. My simple answer would be, just take the selected part of the image, create a new image with the size of the selected area, insert that selected area to the new image and finally replace the new image with the old one.

But then I learned about Acropalypse. TLDR: Google Pixel bug lets you “uncrop” the last four years of screenshots. My first thought, when reading the technical details was: WTF. How can any developer be so ... creative ....

But when you think, it cannot get worse. You realize that also Microsoft devs have smoked the best stuff.

b

Eh voila, we got a new Windows 11 0-day.