Hi, I'm trying to use imageMagick to create this:
(just the colors, the numbers are for reference)
My goal is to compare it with the same image created by a program I made. I tried reading convert usage but, being honest, I ended up confused and without a clue.
So, is there a command that can directly create this?
Thanks in advance
Command to create this simple image?
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Command to create this simple image?
Something like this:
Code: Select all
convert -size 50x50 ( xc:blue xc:lime +append ) ( xc:red xc:white +append ) -append -bordercolor black -border 2 x.png
snibgo's IM pages: im.snibgo.com
Re: Command to create this simple image?
Cool, that didn't work (syntax error on "(" or something like that) but following the idea I managed to do it.
Thanks a lot!
Thanks a lot!
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Command to create this simple image?
You didn't say what shell you used. If you had problems with "(" then I deduce you use bash, so should escape parentheses.
Code: Select all
convert -size 50x50 \( xc:blue xc:lime +append \) \( xc:red xc:white +append \) -append -bordercolor black -border 2 x.png
snibgo's IM pages: im.snibgo.com
Re: Command to create this simple image?
Yeah, forgot about that. Thank you very much!
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Command to create this simple image?
Please always provide your IM version and platform when asking questions, since syntax differs.
See viewtopic.php?f=1&t=9620, which is the top-most link on this forum.
See viewtopic.php?f=1&t=9620, which is the top-most link on this forum.