Wrap screenshots in realistic device frames
When you generate a mockup, the tool doesn't just paste your screenshot blindly on top of a phone picture.
If it did, the sharp, square corners of your screenshot would stick out past the rounded corners of the phone bezel, and you'd be covering up the phone's camera notch or dynamic island.
To make the mockup look perfectly realistic without complex manual masking, we use the HTML5 Canvas globalCompositeOperation property, specifically setting it to destination-over.
destination-over, your screenshot is mathematically forced to render underneath the existing phone frame.Because your screenshot renders underneath, the rounded corners and the "notch" of the phone frame naturally overlap your image.
This creates a perfect, clipping-free mockup without requiring any complex polygon intersection math to trim the corners of your screenshot.
If you draw an image on a Canvas using 'destination-over', where does it appear?