Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I found this example in the imagemagik website:

convert -size 100x100 canvas:khaki  canvas_khaki.gif

which should generate a 100x100 khaki square in the given filename. I didn't manage to run this command on neither a mac box nor ubuntu box. Any ideas how to generate such a picture from the command line?


Error generated on MAC

So here the case is probably simpler; I get the following error:

convert: UnableToOpenConfigureFile `colors.xml' @ warning/configure.c/GetConfigureOptions/589

however, the files seems to be generated correctly. The box is running OS X 10.6.8 and imagemagick's version is 6.6.9-3.

Error on Ubuntu

Here the case seems to be more problematic; the generated error is:

convert: unable to open image `canvas:khaki':  @ error/blob.c/OpenBlob/2489.
convert: missing an image filename `canvas.gif' @ error/convert.c/ConvertImageCommand/2940.

Here I'm running ubuntu with kernel 2.6.38 and the imagemagick version is 6.6.0-4

share|improve this question
why didn't it work? any error messages? – Journeyman Geek Feb 15 '12 at 11:24
up vote 1 down vote accepted

As noted in this forum post:

Use xc: instead. The canvas: image format was recently added.

share|improve this answer
Solved the problem on the ubuntu box. Same error on the mac... :( We're almost there... Thnx anyway for your answer. – Dror Feb 15 '12 at 12:58
It's just a warning. When colors.xml is not found, the internal color table is used. – Oliver Salzburg Feb 15 '12 at 13:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .