Post History
This is an ideal case for ImageMagick. Given input.png: Running this command: convert input.png -draw 'fill yellow fill-opacity 0.5 polygon 50,50 100,30 150,50 100,150' output.png Produces ...
Answer
#1: Initial revision
This is an ideal case for ImageMagick. Given input.png: ![A random image](https://linux.codidact.com/uploads/u2xsoo0o2bqubz94fm776ykov1dt) Running this command: ``` convert input.png -draw 'fill yellow fill-opacity 0.5 polygon 50,50 100,30 150,50 100,150' output.png ``` Produces output.png: ![The same image with a semitransparent yellow kite drawn on it](https://linux.codidact.com/uploads/dz7vez1kn1hhkgu93ip3ghr2jo1f) For far more information, see [the documentation](https://imagemagick.org/script/command-line-options.php?#draw).