How to create a translucent image using imagemagick

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

+3
source share
1 answer

I had to understand 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
+3
source

Source: https://habr.com/ru/post/1723762/


All Articles