I am using Imagemagick in SFOS CLI to create kind of a post-it image.
When I superimpose the yellow image on its shadow, it becomes white.
Doing this on my linux PC is working.
Do I missuse IM due to a different version?
- Create a transparent canvas:
convert -size 100x100 xc:none canvas.png
- Create a shadow:
convert -size 60x60 xc:black shadow.png
- Superimpose the shadow and the canvas:
convert canvas.png shadow.png -gravity center -composite canvas2.png
- Blur it to make it look like a shadow:
convert canvas2.png -blur 0x6 blurred_canvas2.png
- Create the yellow “paper”:
convert -size 72x72 xc:yellow paper.png
- Superimpose the post-it on the shadow:
convert blurred_canvas2.png paper.png -gravity northeast -geometry +10+10 -composite shadowed_paper.png
Result on PC:
Result on SFOS:
It’s working perfect until end of step 5 but then, the “paper” loses its color into step 6.