
I have managed to create this image except for the transparent cutout: (www.duwgati.nl/product-mask.png)

As you can see, it creates the transparent "cutout" on the white rectangle, so that doesn't seem to be the right approach for my needs.
So how can I achieve my goal?
P.S. This is the code I have used:
exec('c:\\imagemagick\\convert.exe -size 255x479 xc:white -fill "rgba(255, 215, 0, 0.1)" -draw "roundrectangle 20,20 235,459 20,20" PNG32:test/rectangle.png');
exec('c:\\imagemagick\\convert.exe -size 1366x768 xc:"rgba(0,0,0,0)" PNG32:test/test.png');
exec('c:\\imagemagick\\convert.exe -size 1366x768 xc:"rgba(0,0,0,0)" -gravity center -draw "image over 0,0 0,0 test/rectangle.png" PNG32:test/product-mask.png');