Create solid colour PNGs with Imagemagick

Published: Friday, Jan 7, 2011 Last modified: Monday, Dec 9, 2024

How about a red 240x320 PNG?

convert -size 240x320 xc:red 240x320.png

Or a green square 100x100?

convert -size 100x100 xc:green 100x100.png