(PECL imagick 2.0.0)
$radius
, float $sigma
[, int $channel
= Imagick::CHANNEL_DEFAULT
] )$radius
, float $sigma
[, int $channel
= Imagick::CHANNEL_DEFAULT
] )$draw_settings
, float $x
, float $y
, float $angle
, string $text
)$composite_object
, int $composite
, int $x
, int $y
[, int $channel
= Imagick::CHANNEL_ALL
] )$files
)$black_point
, float $white_point
[, int $channel
= Imagick::CHANNEL_ALL
] )$x
, int $y
, int $width
, int $height
, string $map
, int $STORAGE
)$fill
, float $fuzz
, mixed $target
, int $x
, int $y
, bool $invert
[, int $channel
= Imagick::CHANNEL_DEFAULT
] )$matte_color
, int $width
, int $height
, int $inner_bevel
, int $outer_bevel
)$function
, array $arguments
[, int $channel
= Imagick::CHANNEL_DEFAULT
] )$reference
, int $metric
[, int $channel
= Imagick::CHANNEL_DEFAULT
] )$x
, int $y
, int $width
, int $height
, string $map
, int $storage
, array $pixels
)$blackPoint
, float $gamma
, float $whitePoint
[, int $channel
= Imagick::CHANNEL_ALL
] )$draw
, string $tile_geometry
, string $thumbnail_geometry
, int $mode
, string $frame
)$radius
, float $sigma
, float $angle
[, int $channel
= Imagick::CHANNEL_DEFAULT
] )$target
, mixed $fill
, float $fuzz
, bool $invert
[, int $channel
= Imagick::CHANNEL_DEFAULT
] )$fill
, float $fuzz
, mixed $bordercolor
, int $x
, int $y
[, int $channel
= Imagick::CHANNEL_ALL
] )$target
, mixed $fill
, float $fuzz
[, int $channel
= Imagick::CHANNEL_ALL
] )$numberColors
, int $colorspace
, int $treedepth
, bool $dither
, bool $measureError
)$numberColors
, int $colorspace
, int $treedepth
, bool $dither
, bool $measureError
)$columns
, int $rows
, int $filter
, float $blur
[, bool $bestfit
= false
] )$x_rounding
, float $y_rounding
[, float $stroke_width
= 10
[, float $displace
= 5
[, float $size_correction
= -6
]]] )$COLORSPACE
, float $cluster_threshold
, float $smooth_threshold
[, bool $verbose
= false
] )$sharpen
, float $alpha
, float $beta
[, int $channel
= Imagick::CHANNEL_ALL
] )$SPARSE_METHOD
, array $arguments
[, int $channel
= Imagick::CHANNEL_DEFAULT
] )$radius
, float $sigma
, float $amount
, float $threshold
[, int $channel
= Imagick::CHANNEL_ALL
] )The Imagick class has the ability to hold and operate on multiple images simultaneously. This is achieved through an internal stack. There is always an internal pointer that points at the current image. Some functions operate on all images in the Imagick class, but most operate only on the current image in the internal stack. As a convention, method names can contain the word Image to denote they affect only the current image in the stack.
Because there are so many methods, here is a handy list of methods, somewhat reduced to their general purpose:
benkuhl at gmail dot com (2013-01-24 19:52:49)
When using this library with PDFs, the term "image" applies to a page where the pointer begins at the last page of the document.
<?php
$document = new Imagick('myPdf.pdf'); //2 page PDF
$document->getNumberImages(); //returns 2
var_dump($document->hasNextImage()); //returns false - remember, we're on the last page
var_dump($document->hasPreviousImage()); //returns true
?>
If you need to do more than generate thumbnails from a PDF, use XPDF: http://www.foolabs.com/xpdf/home.html
php at mattjanssen dot com (2010-12-21 12:39:14)
You can find the documentation for all of these magick_wand--the interface Imagic seems to be built on--functions at http://www.graphicsmagick.org/wand/magick_wand.html
Anonymous (2010-07-30 01:31:23)
Simply echo the Imagick object to output it to the browser.
Remember to use setImageFormat() and header('Content-type: image/png')
martijn at elicit dot nl (2009-11-20 02:50:42)
In case you are wondering why the function imageGrayscale() doesn't exist ... it's because imageModulate(100,0,100) does the trick already!
<?php
$f = 'enter filename here';
$i = new Imagick($f);
$i->imageModulate(100,0,100);
header('Content-type: image/jpeg');
echo $i;
?>
StealthFox at live dot com (2008-10-23 07:15:13)
Users looking to save with these functions should know it can be done easily, for example
<?php
header ("Content-Type: image/{$Imagick->getImageFormat()}");
$data = $Imagick->getImageBlob ();
echo $data;
file_put_contents ('test.png', $data);
?>
That would display the image, and then save it to test.png. Such things are helpful especially when you need to reload images after creating them or save for later. :)