php教程

The Imagick class

(PECL imagick 2.0.0)

类摘要

Imagick implements Iterator {
adaptiveBlurImage ( float $radius , float $sigma [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
adaptiveResizeImage ( int $columns , int $rows [, bool $bestfit = FALSE [, bool $legacy = FALSE ]] ) : bool
adaptiveSharpenImage ( float $radius , float $sigma [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
adaptiveThresholdImage ( int $width , int $height , int $offset ) : bool
addImage ( Imagick $source ) : bool
addNoiseImage ( int $noise_type [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
affineTransformImage ( ImagickDraw $matrix ) : bool
animateImages ( string $x_server ) : bool
annotateImage ( ImagickDraw $draw_settings , float $x , float $y , float $angle , string $text ) : bool
appendImages ( bool $stack ) : Imagick
public autoLevelImage ([ int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
blackThresholdImage ( mixed $threshold ) : bool
public blueShiftImage ([ float $factor = 1.5 ] ) : bool
blurImage ( float $radius , float $sigma [, int $channel ] ) : bool
borderImage ( mixed $bordercolor , int $width , int $height ) : bool
public brightnessContrastImage ( float $brightness , float $contrast [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
charcoalImage ( float $radius , float $sigma ) : bool
chopImage ( int $width , int $height , int $x , int $y ) : bool
public clampImage ([ int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
clear ( void ) : bool
clipImage ( void ) : bool
public clipImagePath ( string $pathname , string $inside ) : void
clipPathImage ( string $pathname , bool $inside ) : bool
clone ( void ) : Imagick
clutImage ( Imagick $lookup_table [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
colorFloodfillImage ( mixed $fill , float $fuzz , mixed $bordercolor , int $x , int $y ) : bool
colorizeImage ( mixed $colorize , mixed $opacity [, bool $legacy = FALSE ] ) : bool
public colorMatrixImage ( array $color_matrix = Imagick::CHANNEL_DEFAULT ) : bool
combineImages ( int $channelType ) : Imagick
commentImage ( string $comment ) : bool
compareImageChannels ( Imagick $image , int $channelType , int $metricType ) : array
compareImageLayers ( int $method ) : Imagick
compareImages ( Imagick $compare , int $metric ) : array
compositeImage ( Imagick $composite_object , int $composite , int $x , int $y [, int $channel = Imagick::CHANNEL_ALL ] ) : bool
__construct ([ mixed $files ] )
contrastImage ( bool $sharpen ) : bool
contrastStretchImage ( float $black_point , float $white_point [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
convolveImage ( array $kernel [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
public count ([ int $mode = 0 ] ) : int
cropImage ( int $width , int $height , int $x , int $y ) : bool
cropThumbnailImage ( int $width , int $height ) : bool
current ( void ) : Imagick
cycleColormapImage ( int $displace ) : bool
decipherImage ( string $passphrase ) : bool
deleteImageArtifact ( string $artifact ) : bool
public deleteImageProperty ( string $name ) : bool
public deskewImage ( float $threshold ) : bool
despeckleImage ( void ) : bool
destroy ( void ) : bool
displayImage ( string $servername ) : bool
displayImages ( string $servername ) : bool
distortImage ( int $method , array $arguments , bool $bestfit ) : bool
drawImage ( ImagickDraw $draw ) : bool
edgeImage ( float $radius ) : bool
embossImage ( float $radius , float $sigma ) : bool
encipherImage ( string $passphrase ) : bool
enhanceImage ( void ) : bool
equalizeImage ( void ) : bool
evaluateImage ( int $op , float $constant [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
public exportImagePixels ( int $x , int $y , int $width , int $height , string $map , int $STORAGE ) : array
extentImage ( int $width , int $height , int $x , int $y ) : bool
public filter ( ImagickKernel $ImagickKernel [, int $channel = Imagick::CHANNEL_UNDEFINED ] ) : bool
flipImage ( void ) : bool
floodFillPaintImage ( mixed $fill , float $fuzz , mixed $target , int $x , int $y , bool $invert [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
flopImage ( void ) : bool
public forwardFourierTransformimage ( bool $magnitude ) : bool
frameImage ( mixed $matte_color , int $width , int $height , int $inner_bevel , int $outer_bevel ) : bool
public functionImage ( int $function , array $arguments [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
fxImage ( string $expression [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : Imagick
gammaImage ( float $gamma [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
gaussianBlurImage ( float $radius , float $sigma [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
getColorspace ( void ) : int
getCompression ( void ) : int
getCompressionQuality ( void ) : int
getCopyright ( void ) : string
getFilename ( void ) : string
getFont ( void ) : string
getFormat ( void ) : string
getGravity ( void ) : int
getHomeURL ( void ) : string
getImage ( void ) : Imagick
getImageAlphaChannel ( void ) : int
getImageArtifact ( string $artifact ) : string
public getImageAttribute ( string $key ) : string
getImageBlob ( void ) : string
getImageBluePrimary ( void ) : array
getImageChannelDepth ( int $channel ) : int
getImageChannelDistortion ( Imagick $reference , int $channel , int $metric ) : float
getImageChannelDistortions ( Imagick $reference , int $metric [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : float
getImageChannelExtrema ( int $channel ) : array
public getImageChannelKurtosis ([ int $channel = Imagick::CHANNEL_DEFAULT ] ) : array
getImageChannelMean ( int $channel ) : array
getImageChannelRange ( int $channel ) : array
getImageChannelStatistics ( void ) : array
getImageColors ( void ) : int
getImageColorspace ( void ) : int
getImageCompose ( void ) : int
getImageCompression ( void ) : int
getImageDelay ( void ) : int
getImageDepth ( void ) : int
getImageDispose ( void ) : int
getImageDistortion ( MagickWand $reference , int $metric ) : float
getImageExtrema ( void ) : array
getImageFilename ( void ) : string
getImageFormat ( void ) : string
getImageGamma ( void ) : float
getImageGeometry ( void ) : array
getImageGravity ( void ) : int
getImageGreenPrimary ( void ) : array
getImageHeight ( void ) : int
getImageHistogram ( void ) : array
getImageIndex ( void ) : int
getImageInterlaceScheme ( void ) : int
getImageIterations ( void ) : int
getImageLength ( void ) : int
getImageMagickLicense ( void ) : string
getImageMatte ( void ) : bool
public getImageMimeType ( void ) : string
getImageOrientation ( void ) : int
getImagePage ( void ) : array
getImagePixelColor ( int $x , int $y ) : ImagickPixel
getImageProfile ( string $name ) : string
getImageProfiles ([ string $pattern = "*" [, bool $include_values = TRUE ]] ) : array
getImageProperties ([ string $pattern = "*" [, bool $include_values = TRUE ]] ) : array
getImageProperty ( string $name ) : string
getImageRedPrimary ( void ) : array
getImageRegion ( int $width , int $height , int $x , int $y ) : Imagick
getImageRenderingIntent ( void ) : int
getImageResolution ( void ) : array
getImagesBlob ( void ) : string
getImageScene ( void ) : int
getImageSignature ( void ) : string
getImageSize ( void ) : int
getImageTicksPerSecond ( void ) : int
getImageTotalInkDensity ( void ) : float
getImageType ( void ) : int
getImageUnits ( void ) : int
getImageWhitePoint ( void ) : array
getImageWidth ( void ) : int
getInterlaceScheme ( void ) : int
getIteratorIndex ( void ) : int
getNumberImages ( void ) : int
getOption ( string $key ) : string
getPackageName ( void ) : string
getPage ( void ) : array
getPixelRegionIterator ( int $x , int $y , int $columns , int $rows ) : ImagickPixelIterator
getPointSize ( void ) : float
public static getQuantum ( void ) : int
getQuantumDepth ( void ) : array
getQuantumRange ( void ) : array
public static getRegistry ( string $key ) : string
getReleaseDate ( void ) : string
getResource ( int $type ) : int
getResourceLimit ( int $type ) : int
getSamplingFactors ( void ) : array
getSize ( void ) : array
getSizeOffset ( void ) : int
getVersion ( void ) : array
public haldClutImage ( Imagick $clut [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
hasNextImage ( void ) : bool
hasPreviousImage ( void ) : bool
public identifyFormat ( string $embedText ) : string
identifyImage ([ bool $appendRawOutput = FALSE ] ) : array
implodeImage ( float $radius ) : bool
public importImagePixels ( int $x , int $y , int $width , int $height , string $map , int $storage , array $pixels ) : bool
public inverseFourierTransformImage ( Imagick $complement , bool $magnitude ) : bool
labelImage ( string $label ) : bool
levelImage ( float $blackPoint , float $gamma , float $whitePoint [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
linearStretchImage ( float $blackPoint , float $whitePoint ) : bool
liquidRescaleImage ( int $width , int $height , float $delta_x , float $rigidity ) : bool
public static listRegistry ( void ) : array
magnifyImage ( void ) : bool
mapImage ( Imagick $map , bool $dither ) : bool
matteFloodfillImage ( float $alpha , float $fuzz , mixed $bordercolor , int $x , int $y ) : bool
medianFilterImage ( float $radius ) : bool
mergeImageLayers ( int $layer_method ) : Imagick
minifyImage ( void ) : bool
modulateImage ( float $brightness , float $saturation , float $hue ) : bool
montageImage ( ImagickDraw $draw , string $tile_geometry , string $thumbnail_geometry , int $mode , string $frame ) : Imagick
morphImages ( int $number_frames ) : Imagick
public morphology ( int $morphologyMethod , int $iterations , ImagickKernel $ImagickKernel [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
mosaicImages ( void ) : Imagick
motionBlurImage ( float $radius , float $sigma , float $angle [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
negateImage ( bool $gray [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
newImage ( int $cols , int $rows , mixed $background [, string $format ] ) : bool
newPseudoImage ( int $columns , int $rows , string $pseudoString ) : bool
nextImage ( void ) : bool
normalizeImage ([ int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
oilPaintImage ( float $radius ) : bool
opaquePaintImage ( mixed $target , mixed $fill , float $fuzz , bool $invert [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
optimizeImageLayers ( void ) : bool
orderedPosterizeImage ( string $threshold_map [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
paintFloodfillImage ( mixed $fill , float $fuzz , mixed $bordercolor , int $x , int $y [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
paintOpaqueImage ( mixed $target , mixed $fill , float $fuzz [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
paintTransparentImage ( mixed $target , float $alpha , float $fuzz ) : bool
pingImage ( string $filename ) : bool
pingImageBlob ( string $image ) : bool
pingImageFile ( resource $filehandle [, string $fileName ] ) : bool
polaroidImage ( ImagickDraw $properties , float $angle ) : bool
posterizeImage ( int $levels , bool $dither ) : bool
previewImages ( int $preview ) : bool
previousImage ( void ) : bool
profileImage ( string $name , string $profile ) : bool
quantizeImage ( int $numberColors , int $colorspace , int $treedepth , bool $dither , bool $measureError ) : bool
quantizeImages ( int $numberColors , int $colorspace , int $treedepth , bool $dither , bool $measureError ) : bool
queryFontMetrics ( ImagickDraw $properties , string $text [, bool $multiline ] ) : array
queryFonts ([ string $pattern = "*" ] ) : array
queryFormats ([ string $pattern = "*" ] ) : array
radialBlurImage ( float $angle [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
raiseImage ( int $width , int $height , int $x , int $y , bool $raise ) : bool
randomThresholdImage ( float $low , float $high [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
readImage ( string $filename ) : bool
readImageBlob ( string $image [, string $filename ] ) : bool
readImageFile ( resource $filehandle [, string $fileName = NULL ] ) : bool
public readImages ( array $filenames ) : bool
recolorImage ( array $matrix ) : bool
reduceNoiseImage ( float $radius ) : bool
public remapImage ( Imagick $replacement , int $DITHER ) : bool
removeImage ( void ) : bool
removeImageProfile ( string $name ) : string
render ( void ) : bool
resampleImage ( float $x_resolution , float $y_resolution , int $filter , float $blur ) : bool
resetImagePage ( string $page ) : bool
resizeImage ( int $columns , int $rows , int $filter , float $blur [, bool $bestfit = FALSE [, bool $legacy = FALSE ]] ) : bool
rollImage ( int $x , int $y ) : bool
rotateImage ( mixed $background , float $degrees ) : bool
public rotationalBlurImage ( float $angle [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
roundCorners ( float $x_rounding , float $y_rounding [, float $stroke_width = 10 [, float $displace = 5 [, float $size_correction = -6 ]]] ) : bool
sampleImage ( int $columns , int $rows ) : bool
scaleImage ( int $cols , int $rows [, bool $bestfit = FALSE [, bool $legacy = FALSE ]] ) : bool
public segmentImage ( int $COLORSPACE , float $cluster_threshold , float $smooth_threshold [, bool $verbose = FALSE ] ) : bool
public selectiveBlurImage ( float $radius , float $sigma , float $threshold [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
separateImageChannel ( int $channel ) : bool
sepiaToneImage ( float $threshold ) : bool
setBackgroundColor ( mixed $background ) : bool
setColorspace ( int $COLORSPACE ) : bool
setCompression ( int $compression ) : bool
setCompressionQuality ( int $quality ) : bool
setFilename ( string $filename ) : bool
setFirstIterator ( void ) : bool
setFont ( string $font ) : bool
setFormat ( string $format ) : bool
setGravity ( int $gravity ) : bool
setImage ( Imagick $replace ) : bool
setImageAlphaChannel ( int $mode ) : bool
setImageArtifact ( string $artifact , string $value ) : bool
public setImageAttribute ( string $key , string $value ) : bool
setImageBackgroundColor ( mixed $background ) : bool
setImageBias ( float $bias ) : bool
public setImageBiasQuantum ( string $bias ) : void
setImageBluePrimary ( float $x , float $y ) : bool
setImageBorderColor ( mixed $border ) : bool
setImageChannelDepth ( int $channel , int $depth ) : bool
setImageClipMask ( Imagick $clip_mask ) : bool
setImageColormapColor ( int $index , ImagickPixel $color ) : bool
setImageColorspace ( int $colorspace ) : bool
setImageCompose ( int $compose ) : bool
setImageCompression ( int $compression ) : bool
setImageCompressionQuality ( int $quality ) : bool
setImageDelay ( int $delay ) : bool
setImageDepth ( int $depth ) : bool
setImageDispose ( int $dispose ) : bool
setImageExtent ( int $columns , int $rows ) : bool
setImageFilename ( string $filename ) : bool
setImageFormat ( string $format ) : bool
setImageGamma ( float $gamma ) : bool
setImageGravity ( int $gravity ) : bool
setImageGreenPrimary ( float $x , float $y ) : bool
setImageIndex ( int $index ) : bool
setImageInterlaceScheme ( int $interlace_scheme ) : bool
setImageInterpolateMethod ( int $method ) : bool
setImageIterations ( int $iterations ) : bool
setImageMatte ( bool $matte ) : bool
setImageMatteColor ( mixed $matte ) : bool
setImageOpacity ( float $opacity ) : bool
setImageOrientation ( int $orientation ) : bool
setImagePage ( int $width , int $height , int $x , int $y ) : bool
setImageProfile ( string $name , string $profile ) : bool
setImageProperty ( string $name , string $value ) : bool
setImageRedPrimary ( float $x , float $y ) : bool
setImageRenderingIntent ( int $rendering_intent ) : bool
setImageResolution ( float $x_resolution , float $y_resolution ) : bool
setImageScene ( int $scene ) : bool
setImageTicksPerSecond ( int $ticks_per_second ) : bool
setImageType ( int $image_type ) : bool
setImageUnits ( int $units ) : bool
setImageVirtualPixelMethod ( int $method ) : bool
setImageWhitePoint ( float $x , float $y ) : bool
setInterlaceScheme ( int $interlace_scheme ) : bool
setIteratorIndex ( int $index ) : bool
setLastIterator ( void ) : bool
setOption ( string $key , string $value ) : bool
setPage ( int $width , int $height , int $x , int $y ) : bool
setPointSize ( float $point_size ) : bool
public setProgressMonitor ( callable $callback ) : bool
public static setRegistry ( string $key , string $value ) : bool
setResolution ( float $x_resolution , float $y_resolution ) : bool
setResourceLimit ( int $type , int $limit ) : bool
setSamplingFactors ( array $factors ) : bool
setSize ( int $columns , int $rows ) : bool
setSizeOffset ( int $columns , int $rows , int $offset ) : bool
setType ( int $image_type ) : bool
shadeImage ( bool $gray , float $azimuth , float $elevation ) : bool
shadowImage ( float $opacity , float $sigma , int $x , int $y ) : bool
sharpenImage ( float $radius , float $sigma [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
shaveImage ( int $columns , int $rows ) : bool
shearImage ( mixed $background , float $x_shear , float $y_shear ) : bool
sigmoidalContrastImage ( bool $sharpen , float $alpha , float $beta [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
sketchImage ( float $radius , float $sigma , float $angle ) : bool
public smushImages ( bool $stack , int $offset ) : Imagick
solarizeImage ( int $threshold ) : bool
public sparseColorImage ( int $SPARSE_METHOD , array $arguments [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
spliceImage ( int $width , int $height , int $x , int $y ) : bool
spreadImage ( float $radius ) : bool
public statisticImage ( int $type , int $width , int $height [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
steganoImage ( Imagick $watermark_wand , int $offset ) : Imagick
stereoImage ( Imagick $offset_wand ) : bool
stripImage ( void ) : bool
public subImageMatch ( Imagick $Imagick [, array &$offset [, float &$similarity ]] ) : Imagick
swirlImage ( float $degrees ) : bool
textureImage ( Imagick $texture_wand ) : Imagick
thresholdImage ( float $threshold [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
thumbnailImage ( int $columns , int $rows [, bool $bestfit = FALSE [, bool $fill = FALSE [, bool $legacy = FALSE ]]] ) : bool
tintImage ( mixed $tint , mixed $opacity [, bool $legacy = FALSE ] ) : bool
__toString ( void ) : string
transformImage ( string $crop , string $geometry ) : Imagick
transformImageColorspace ( int $colorspace ) : bool
transparentPaintImage ( mixed $target , float $alpha , float $fuzz , bool $invert ) : bool
transposeImage ( void ) : bool
transverseImage ( void ) : bool
trimImage ( float $fuzz ) : bool
uniqueImageColors ( void ) : bool
unsharpMaskImage ( float $radius , float $sigma , float $amount , float $threshold [, int $channel = Imagick::CHANNEL_DEFAULT ] ) : bool
valid ( void ) : bool
vignetteImage ( float $blackPoint , float $whitePoint , int $x , int $y ) : bool
waveImage ( float $amplitude , float $length ) : bool
whiteThresholdImage ( mixed $threshold ) : bool
writeImage ([ string $filename = NULL ] ) : bool
writeImageFile ( resource $filehandle [, string $format ] ) : bool
writeImages ( string $filename , bool $adjoin ) : bool
writeImagesFile ( resource $filehandle [, string $format ] ) : bool
}

Image methods and global methods

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.

Class Methods

Because there are so many methods, here is a handy list of methods, somewhat reduced to their general purpose:

Class methods by purpose
Image effects Get methods Set methods Read/write images Other
Imagick::adaptiveBlurImage() Imagick::getCompression() Imagick::setBackgroundColor() Imagick::__construct() Imagick::clear()
Imagick::adaptiveResizeImage() Imagick::getFilename() Imagick::setCompressionQuality() Imagick::addImage() Imagick::clone()
Imagick::adaptiveSharpenImage() Imagick::getFormat() Imagick::setCompression() Imagick::appendImages() Imagick::current()
Imagick::adaptiveThresholdImage() Imagick::getImageBackgroundColor() Imagick::setFilename() Imagick::getFilename() Imagick::destroy()
Imagick::addNoiseImage() Imagick::getImageBlob() Imagick::getImagesBlob() Imagick::setFormat() Imagick::getFormat()
Imagick::affinetransformimage() Imagick::getImageBluePrimary() Imagick::setImageBackgroundColor() Imagick::getImageFilename() Imagick::getHomeURL()
Imagick::annotateImage() Imagick::getImageBorderColor() Imagick::setFirstIterator() Imagick::getImageFormat() Imagick::commentImage()
Imagick::averageImages() Imagick::getImageChannelDepth() Imagick::setImageBias() Imagick::getImage() Imagick::getNumberImages()
Imagick::blackThresholdImage() Imagick::getImageChannelDistortion() Imagick::setImageBluePrimary() Imagick::setImageFilename() Imagick::getReleaseDate()
Imagick::blurImage() Imagick::getImageChannelExtrema() Imagick::setImageBorderColor() Imagick::setImageFormat() Imagick::getVersion()
Imagick::borderImage() Imagick::getImageChannelMean() Imagick::setImageChannelDepth() Imagick::readImageFile() Imagick::hasNextImage()
Imagick::charcoalImage() Imagick::getImageChannelStatistics() Imagick::setImageColormapColor() Imagick::readImage() Imagick::hasPreviousImage()
Imagick::chopImage() Imagick::getImageColormapColor() Imagick::setImageColorSpace() Imagick::writeImages() Imagick::labelImage()
Imagick::clipImage() Imagick::getImageColorspace() Imagick::setImageCompose() Imagick::writeImage() Imagick::newImage()
Imagick::clipPathImage() Imagick::getImageColors() Imagick::setImageCompression()   Imagick::newPseudoImage()
Imagick::coalesceImages() Imagick::getImageCompose() Imagick::setImageDelay()   Imagick::nextImage()
Imagick::colorFloodFillImage() Imagick::getImageDelay() Imagick::setImageDepth()   Imagick::pingImageBlob()
Imagick::colorizeImage() Imagick::getImageDepth() Imagick::setImageDispose()   Imagick::pingImageFile()
Imagick::combineImages() Imagick::getImageDispose() Imagick::setImageDispose()   Imagick::pingImage()
Imagick::compareImageChannels() Imagick::getImageDistortion() Imagick::setImageExtent()   Imagick::previousImage()
Imagick::compareImageLayers() Imagick::getImageExtrema() Imagick::setImageFilename()   Imagick::profileImage()
Imagick::compositeImage() Imagick::getImageFilename() Imagick::setImageFormat()   Imagick::queryFormats()
Imagick::contrastImage() Imagick::getImageFormat() Imagick::setImageGamma()   Imagick::removeImageProfile()
Imagick::contrastStretchImage() Imagick::getImageGamma() Imagick::setImageGreenPrimary()   Imagick::removeImage()
Imagick::convolveImage() Imagick::getImageGeometry() Imagick::setImageIndex()   Imagick::setFirstIterator()
Imagick::cropImage() Imagick::getImageGreenPrimary() Imagick::setImageInterpolateMethod()   Imagick::setImageIndex()
Imagick::cycleColormapImage() Imagick::getImageHeight() Imagick::setImageIterations()   Imagick::valid()
Imagick::deconstructImages() Imagick::getImageHistogram() Imagick::setImageMatteColor()   Imagick::getCopyright()
Imagick::drawImage() Imagick::getImageIndex() Imagick::setImageMatte()    
Imagick::edgeImage() Imagick::getImageInterlaceScheme() Imagick::setImagePage()    
Imagick::embossImage() Imagick::getImageInterpolateMethod() Imagick::setImageProfile()    
Imagick::enhanceImage() Imagick::getImageIterations() Imagick::setImageProperty()    
Imagick::equalizeImage() Imagick::getImageMatteColor() Imagick::setImageRedPrimary()    
Imagick::evaluateImage() Imagick::getImageMatte() Imagick::setImageRenderingIntent()    
Imagick::flattenImages() Imagick::getImagePage() Imagick::setImageResolution()    
Imagick::flipImage() Imagick::getImagePixelColor() Imagick::setImageScene()    
Imagick::flopImage() Imagick::getImageProfile() Imagick::setImageTicksPerSecond()    
  Imagick::getImageProperty() Imagick::setImageType()    
Imagick::fxImage() Imagick::getImageRedPrimary() Imagick::setImageUnits()    
Imagick::gammaImage() Imagick::getImageRegion() Imagick::setImageVirtualPixelMethod()    
Imagick::gaussianBlurImage() Imagick::getImageRenderingIntent() Imagick::setImageWhitepoint()    
Imagick::implodeImage() Imagick::getImageResolution() Imagick::setInterlaceScheme()    
Imagick::levelImage() Imagick::getImageScene() Imagick::setOption()    
Imagick::linearStretchImage() Imagick::getImageSignature() Imagick::setPage()    
Imagick::magnifyImage() Imagick::getImageTicksPerSecond() Imagick::setResolution()    
Imagick::matteFloodFillImage() Imagick::getImageTotalInkDensity() Imagick::setResourceLimit()    
Imagick::medianFilterImage() Imagick::getImageType() Imagick::setSamplingFactors()    
Imagick::minifyImage() Imagick::getImageUnits() Imagick::setSizeOffset()    
Imagick::modulateImage() Imagick::getImageVirtualPixelMethod() Imagick::setSize()    
Imagick::montageImage() Imagick::getImageWhitepoint() Imagick::setType()    
Imagick::morphImages() Imagick::getImageWidth()      
Imagick::mosaicImages() Imagick::getImage()      
Imagick::motionBlurImage() Imagick::getInterlaceScheme()      
Imagick::negateImage() Imagick::getNumberImages()      
Imagick::normalizeImage() Imagick::getOption()      
Imagick::oilPaintImage() Imagick::getPackageName()      
Imagick::optimizeImageLayers() Imagick::getPage()      
Imagick::paintOpaqueImage() Imagick::getPixelIterator()      
Imagick::paintTransparentImage() Imagick::getPixelRegionIterator()      
Imagick::posterizeImage() Imagick::getQuantumDepth()      
Imagick::radialBlurImage() Imagick::getQuantumRange()      
Imagick::raiseImage() Imagick::getResourceLimit()      
Imagick::randomThresholdImage() Imagick::getResource()      
Imagick::reduceNoiseImage() Imagick::getSamplingFactors()      
Imagick::render() Imagick::getSizeOffset()      
Imagick::resampleImage() Imagick::getSize()      
Imagick::resizeImage() Imagick::identifyImage()      
Imagick::rollImage() Imagick::getImageSize()      
Imagick::rotateImage()        
Imagick::sampleImage()        
Imagick::scaleImage()        
Imagick::separateImageChannel()        
Imagick::sepiaToneImage()        
Imagick::shadeImage()        
Imagick::shadowImage()        
Imagick::sharpenImage()        
Imagick::shaveImage()        
Imagick::shearImage()        
Imagick::sigmoidalContrastImage()        
Imagick::sketchImage()        
Imagick::solarizeImage()        
Imagick::spliceImage()        
Imagick::spreadImage()        
Imagick::steganoImage()        
Imagick::stereoImage()        
Imagick::stripImage()        
Imagick::swirlImage()        
Imagick::textureImage()        
Imagick::thresholdImage()        
Imagick::thumbnailImage()        
Imagick::tintImage()        
Imagick::transverseImage()        
Imagick::trimImage()        
Imagick::uniqueImageColors()        
Imagick::unsharpMaskImage()        
Imagick::vignetteImage()        
Imagick::waveImage()        
Imagick::whiteThresholdImage()        

Table of Contents

User Contributed Notes

benkuhl at gmail dot com 24-Jan-2013 07:52
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 21-Dec-2010 12:39
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
StealthFox at live dot com 23-Oct-2008 07:15
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. :)

CopyRight © 2008-2022 verySource.Com All Rights reserved. 京ICP备17048824号-1 京公网安备:11010502034788