Vector drawing tutorials?

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
dodginess

Vector drawing tutorials?

Post by dodginess »

Hi All,

I'm interested in using MagickWand to draw pie charts and line graphs as I've found GD quite limiting (in some respects at least) and the Flash applications that I've seen aren't much use to me because I want to be able to include the graphics in PDFs, etc.

Does anyone know of any basic (online) tutorials that might help? Failing that, can anyone recommend any books? I've looked at the main magickwand.org site but this is only going to be helpful once I know what I'm doing. I also think that I might have missed something really basic - is there a direct correlation between the MagickWand API and the ImageMagick command line options? Again, a tutorial would help!

Thanks :)

Dodginess
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Vector drawing tutorials?

Post by fmw42 »

I don't use the APIs, only command line. So someone else will have to help there. But there are good tutorials by way of examples at http://www.imagemagick.org/Usage/ You want to look especially at http://www.imagemagick.org/Usage/draw/ and the pie chart example at http://www.imagemagick.org/Usage/draw/#paths

IM uses SVG for such drawing. So you may want to refer to http://www.w3.org/TR/SVG/paths.html#Pat ... nformation

Anthony may be able to shed more light on using the API for doing such.
dodginess

Re: Vector drawing tutorials?

Post by dodginess »

Thank you for the links - I'll take a look and report back. I normally prefer to use an API because exec() can obviously be a bit dangerous if you're not careful. Plus, I'm on a shared server so I'm not sure whether I can access ImageMagick directly anyway.

Thanks again!

Dodginess
Post Reply