Our images are being uploaded by the users on the web application (React) and being saved on the database by our API (Loopback).
The images will be used in our Qt application and they should have round corners. We have some processing limitations so we can't clip or mask the images on Qt.
We have some out of proportion images with dry corners breaking the layout right now and I need a way to crop them to the correct proportions with a border radius on all 4 corners. For our next application we should have two rounded corners and two squared ones but if this isn't possible I can try and change it.
What I have researched so far:
- Cropping libraries (lots of them, but most had rectangle or circle as options for shapes and no clear way to customize the shape).
- Ways to add a pre-saved mask to the alpha channel of the image (couldn't really figure out a way that would work).
- The HTML tag canvas (still trying this approach).
I'm willing to try almost anything as long as it doesn't involve major changes to the Qt application.