Imagemagick scripting using OO interface?

software development

#1

I’m a beginner web developer but want to play around with imagemagick

I’ve been working from the example on the wiki: http://wiki.dreamhost.com/Image_Magick

which shows a command-line style(?) of developing for imagemagick.

but tutorials on php.net show a simpler 'OO interface’
http://php.net/manual/en/imagick.examples-1.php

<?php header('Content-type: image/jpeg'); $image = new Imagick('image.jpg'); // If 0 is provided as a width or height parameter, // aspect ratio is maintained $image->thumbnailImage(100, 0); echo $image; ?>

is there a way to access imagemagick using OO interface on dreamhost shared hosting?

thanks!