Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create semi-transparent image using imagemagick

I have a hex (i.e. #FF0000) color and want to generate 50% transparent 50x50 image using imagemagick from command line.

like image 714
Anatoliy Avatar asked Oct 14 '25 16:10

Anatoliy


1 Answers

I had to figure out something similar when I was working with CSS 3 and RGBA.

convert -size 50x50  xc:'rgba(255,0,0,0.5)' red_0.5_pixel.png
like image 134
Quentin Avatar answered Oct 18 '25 02:10

Quentin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!