Page 1 of 1

Why are there 7 ways to make a black image?

Posted: 2009-04-10T11:37:41-07:00
by daviddoria
I was reading through some of the examples, and I am confused as to why there are 7 ways to make a solid black image:
http://www.imagemagick.org/Usage/canvas/#other

Maybe I am missing the point of the "canvas"? But what I'm imagining is that you just want a solid background to start working on, so why would you need to use one of those methods over another?

Dave

Re: Why are there 7 ways to make a black image?

Posted: 2009-04-10T11:50:24-07:00
by fmw42
Anthony was just being thorough and trying to show there are many ways to skin the cat.

If you just want a black background and know the size you need, then just do

convert -size WIDTHxHEIGHT xc:black blackimage.png

(or any other suffix you want)

Re: Why are there 7 ways to make a black image?

Posted: 2009-04-10T11:54:18-07:00
by daviddoria
haha ok, thats the one that made the most sense, so I'll just stick with that.

Dave

Re: Why are there 7 ways to make a black image?

Posted: 2009-04-10T22:48:16-07:00
by anthony
Most of the other methods are to take an existing image and turn it into a black canvas that is the same size.

This is only important when writing a IM command so it can handle an image that is ANY SIZE, and not limit the command to a specific sized image.