$20 for help. Cheap broke bastard.

Do you need consulting from ImageMagick experts and are willing to pay for their expertise? Or are you well versed in ImageMagick and offer paid consulting? If so, post here otherwise post elsewhere for free assistance.
Post Reply
cellurl
Posts: 6
Joined: 2013-10-24T14:55:07-07:00
Authentication code: 6789

$20 for help. Cheap broke bastard.

Post by cellurl »

I am trying to make a map for a non profit.

Can anyone get me started?

It will have sizes, amounts, names.
It needs to showup like this:

http://www.wikispeedia.org/red.png

Thanks for any leads!
Jim Pruett
wikispeedia.org
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: $20 for help. Cheap broke bastard.

Post by fmw42 »

Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: $20 for help. Cheap broke bastard.

Post by Bonzo »

I do not know what code you are using but this code in php produces this example:

Code: Select all

<?php  
$cmd = " -size 200x185 xc:none ". 
" -fill grey39 -draw \"rectangle 47,0 102,20\" ". 
" -fill grey39 -draw \"rectangle 157,0 176,185\" ". 
" -fill red -draw \"rectangle 0,20 200,75\" ". 
" -fill silver -draw \"rectangle 10,36 167,145\" ". 
" -fill blue -draw \"rectangle 130,0 150,185\" ". 
" -fill brown -draw \"rectangle 72,110 200,137\" ". 
" -fill grey26 -draw \"rectangle 0,99 56,185\" ". 
" -fill grey39 -draw \"rectangle 81,102 120,185\" ". 
" -fill green -draw \"rectangle 30,164 200,177\" "; 

exec("convert $cmd rectangle.gif"); ?>  
Image

To draw rectangles with rounded corners replace the -draw "rectangle 81,102 120,185" with -draw "roundRectangle 50,50 167,110 10,10"

You can put the text wherever you want and I would use -annotate:

Code: Select all

<?php  
$cmd = "$input -fill black -pointsize 40".  
" -gravity center -annotate +0+0 \"Annotate\"".  
" -fill white -annotate +2+2 \"Annotate\"";  
exec("convert $cmd annotate.jpg"); 
   ?>  
Image
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: $20 for help. Cheap broke bastard.

Post by snibgo »

Windows script:

Code: Select all

convert -size 1111x452 xc:White ^
  -draw "fill rgb(255,242,0) roundRectangle 384,260 479,326 14,14" ^
  -draw "fill rgb(0,162,232) text 400,314 Tommy" ^
  -draw "fill rgb(237,28,36) roundRectangle 446,147 623,282 14,14" ^
  -draw "fill rgb(0,162,232) text 537,272 Esoen" ^
  -draw "fill rgb(0,162,232) roundRectangle 752,92 785,123 6,6" ^
  -draw "fill rgb(0,0,0) text 768,108 Bob" ^
  -draw "fill rgb(0,0,0) text 125,38 'What is wikispeedia?'" ^
  red2.png
snibgo's IM pages: im.snibgo.com
cellurl
Posts: 6
Joined: 2013-10-24T14:55:07-07:00
Authentication code: 6789

Re: $20 for help. Cheap broke bastard.

Post by cellurl »

I have to use CGI. Sorry about that.....

Your examples are exactly what I need.
If you can help me convert them to perl I would be in your debt.

So far, I copied your example.pl and got this far.
http://www.wikispeedia.org/tmp/demo.jpg


thanks for continued help. I had email notify off. Its on now....
jim
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: $20 for help. Cheap broke bastard.

Post by snibgo »

For help on IM in Perl, see viewforum.php?f=7

The more specific you can be about your questions, the better the answers will be.
snibgo's IM pages: im.snibgo.com
cellurl
Posts: 6
Joined: 2013-10-24T14:55:07-07:00
Authentication code: 6789

Re: $20 for help. Cheap broke bastard.

Post by cellurl »

ok, off to new forum.
thanks.
Post Reply