ImageMagick
PHP Manual

Imagick クラス

クラス概要

Imagick
Imagick implements Iterator , Traversable {
bool adaptiveBlurImage ( float $radius , float $sigma [, int $channel = Imagick::CHANNEL_DEFAULT ] )
bool adaptiveResizeImage ( int $columns , int $rows [, bool $fit = 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 animateImages ( string $x_server )
bool annotateImage ( ImagickDraw $draw_settings , float $x , float $y , float $angle , string $text )
Imagick appendImages ( bool $stack )
Imagick averageImages ( void )
bool blackThresholdImage ( mixed $threshold )
bool blurImage ( float $radius , float $sigma [, int $channel ] )
bool borderImage ( mixed $bordercolor , int $width , int $height )
bool charcoalImage ( float $radius , float $sigma )
bool chopImage ( int $width , int $height , int $x , int $y )
bool clear ( void )
bool clipImage ( void )
bool clipPathImage ( string $pathname , bool $inside )
Imagick clone ( void )
bool clutImage ( Imagick $lookup_table [, float $channel = Imagick::CHANNEL_DEFAULT ] )
Imagick coalesceImages ( void )
bool colorFloodfillImage ( mixed $fill , float $fuzz , mixed $bordercolor , int $x , int $y )
bool colorizeImage ( mixed $colorize , mixed $opacity )
Imagick combineImages ( int $channelType )
bool commentImage ( string $comment )
array compareImageChannels ( Imagick $image , int $channelType , int $metricType )
Imagick compareImageLayers ( int $method )
array compareImages ( Imagick $compare , int $metric )
bool compositeImage ( Imagick $composite_object , int $composite , int $x , int $y [, int $channel = Imagick::CHANNEL_ALL ] )
Imagick __construct ([ mixed $files ] )
bool contrastImage ( bool $sharpen )
bool contrastStretchImage ( float $black_point , float $white_point [, int $channel = Imagick::CHANNEL_ALL ] )
bool convolveImage ( array $kernel [, int $channel = Imagick::CHANNEL_ALL ] )
bool cropImage ( int $width , int $height , int $x , int $y )
bool cropThumbnailImage ( int $width , int $height )
Imagick current ( void )
bool cycleColormapImage ( int $displace )
bool decipherImage ( string $passphrase )
bool deconstructImages ( void )
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_ALL ] )
bool extentImage ( int $width , int $height , int $x , int $y )
Imagick flattenImages ( void )
bool flipImage ( void )
bool floodFillPaintImage ( mixed $fill , float $fuzz , mixed $bordercolor , int $x , int $y , bool $invert [, int $channel = Imagick::CHANNEL_DEFAULT ] )
bool flopImage ( void )
bool frameImage ( mixed $matte_color , int $width , int $height , int $inner_bevel , int $outer_bevel )
Imagick fxImage ( string $expression [, int $channel = Imagick::CHANNEL_ALL ] )
bool gammaImage ( float $gamma [, int $channel = Imagick::CHANNEL_ALL ] )
bool gaussianBlurImage ( float $radius , float $sigma [, int $channel = Imagick::CHANNEL_ALL ] )
int getCompression ( void )
int getCompressionQuality ( void )
string getCopyright ( void )
string getFilename ( void )
string getFont ( void )
string getFormat ( void )
bool getGravity ( void )
string getHomeURL ( void )
Imagick getImage ( void )
int getImageAlphaChannel ( void )
ImagickPixel getImageBackgroundColor ( void )
string getImageBlob ( void )
array getImageBluePrimary ( float $x , float $y )
ImagickPixel getImageBorderColor ( void )
int getImageChannelDepth ( int $channel )
float getImageChannelDistortion ( Imagick $reference , int $channel , int $metric )
double getImageChannelDistortions ( Imagick $reference , int $metric , int $channel )
array getImageChannelExtrema ( int $channel )
array getImageChannelMean ( int $channel )
bool getImageChannelRange ( int $channel )
Imagick getImageClipMask ( void )
ImagickPixel getImageColormapColor ( int $index )
int getImageColors ( void )
int getImageColorspace ( void )
int getImageCompose ( void )
int getImageCompression ( void )
int getCompressionQuality ( void )
int getImageDelay ( void )
int getImageDepth ( void )
int getImageDispose ( void )
float getImageDistortion ( MagickWand $reference , int $metric )
array getImageExtrema ( void )
string getImageFilename ( void )
string getImageFormat ( void )
float getImageGamma ( void )
array getImageGeometry ( void )
array getImageGreenPrimary ( void )
int getImageHeight ( void )
array getImageHistogram ( void )
int getImageIndex ( void )
int getImageIterations ( void )
int getImageLength ( void )
string getImageMagickLicense ( void )
int getImageMatte ( void )
ImagickPixel getImageMatteColor ( void )
int getImageOrientation ( void )
array getImagePage ( void )
ImagickPixel getImagePixelColor ( int $x , int $y )
string getImageProfile ( string $name )
array getImageProfiles ([ string $pattern = "*" [, bool $only_names = true ]] )
array getImageProperties ([ string $pattern = "*" [, bool $only_names = true ]] )
string getImageProperty ( string $name )
array getImageRedPrimary ( void )
Imagick getImageRegion ( int $width , int $height , int $x , int $y )
array getImageResolution ( void )
string getImagesBlob ( void )
int getImageScene ( void )
string getImageSignature ( void )
int getImageSize ( void )
float getImageTotalInkDensity ( void )
int getImageType ( void )
int getImageUnits ( void )
array getImageWhitePoint ( void )
int getImageWidth ( void )
int getInterlaceScheme ( void )
int getIteratorIndex ( void )
int getNumberImages ( void )
string getOption ( string $key )
string getPackageName ( void )
array getPage ( void )
ImagickPixelIterator getPixelIterator ( void )
ImagickPixelIterator getPixelRegionIterator ( int $x , int $y , int $columns , int $rows )
string getPointSize ( void )
array getQuantumDepth ( void )
array getQuantumRange ( void )
string getReleaseDate ( void )
int getResource ( int $type )
int getResourceLimit ( int $type )
array getSamplingFactors ( void )
array getSize ( void )
int getSizeOffset ( void )
array getVersion ( void )
bool hasNextImage ( void )
bool hasPreviousImage ( void )
array identifyImage ([ bool $appendRawOutput = false ] )
bool implodeImage ( float $radius )
bool labelImage ( string $label )
bool levelImage ( float $blackPoint , float $gamma , float $whitePoint [, int $channel = Imagick::CHANNEL_ALL ] )
bool linearStretchImage ( float $blackPoint , float $whitePoint )
bool liquidRescaleImage ( int $width , int $height , float $delta_x , float $rigidity )
bool 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 )
bool minifyImage ( void )
bool modulateImage ( float $brightness , float $saturation , float $hue )
Imagick montageImage ( ImagickDraw $draw , string $tile_geometry , string $thumbnail_geometry , int $mode , string $frame )
Imagick morphImages ( int $number_frames )
Imagick mosaicImages ( void )
bool motionBlurImage ( float $radius , float $sigma , float $angle [, int $channel = Imagick::CHANNEL_DEFAULT ] )
bool negateImage ( bool $gray [, int $channel = Imagick::CHANNEL_ALL ] )
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 ] )
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_ALL ] )
bool paintFloodfillImage ( mixed $fill , float $fuzz , mixed $bordercolor , int $x , int $y [, int $channel = Imagick::CHANNEL_ALL ] )
bool paintOpaqueImage ( mixed $target , mixed $fill , float $fuzz [, int $channel = Imagick::CHANNEL_ALL ] )
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 )
array queryFontMetrics ( ImagickDraw $properties , string $text [, bool $multiline ] )
array queryFonts ([ string $pattern = "*" ] )
array queryFormats ([ string $pattern = "*" ] )
bool radialBlurImage ( float $angle [, int $channel = Imagick::CHANNEL_ALL ] )
bool raiseImage ( int $width , int $height , int $x , int $y , bool $raise )
bool randomThresholdImage ( float $low , float $high [, int $channel = Imagick::CHANNEL_ALL ] )
bool readImage ( string $filename )
bool readImageBlob ( string $image [, string $filename ] )
bool readImageFile ( resource $filehandle [, string $fileName ] )
bool animateImages ( array $matrix )
bool reduceNoiseImage ( float $radius )
bool removeImage ( void )
string removeImageProfile ( string $name )
bool 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 $fit = false ] )
bool rollImage ( int $x , int $y )
bool rotateImage ( mixed $background , float $degrees )
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 $fit = false ] )
bool separateImageChannel ( int $channel )
bool sepiaToneImage ( float $threshold )
bool setBackgroundColor ( mixed $background )
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 setImageBackgroundColor ( mixed $background )
bool setImageBias ( float $bias )
bool 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 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 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_ALL ] )
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_ALL ] )
bool sketchImage ( float $radius , float $sigma , float $angle )
bool solarizeImage ( int $threshold )
bool spliceImage ( int $width , int $height , int $x , int $y )
bool spreadImage ( float $radius )
Imagick steganoImage ( Imagick $watermark_wand , int $offset )
bool stereoImage ( Imagick $offset_wand )
bool stripImage ( void )
bool swirlImage ( float $degrees )
bool textureImage ( Imagick $texture_wand )
bool thresholdImage ( float $threshold [, int $channel = Imagick::CHANNEL_ALL ] )
bool thumbnailImage ( int $columns , int $rows [, bool $fit = false ] )
bool tintImage ( mixed $tint , mixed $opacity )
Imagick transformImage ( string $crop , string $geometry )
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_ALL ] )
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 ] )
bool writeImageFile ( resource $filehandle )
bool writeImages ( string $filename , bool $adjoin )
bool writeImagesFile ( resource $filehandle )
}

画像メソッドおよびグローバルメソッド

Imagick クラスには、複数の画像を同時に保持して操作する機能があります。 内部的には、この機能をスタックで実装しています。 現在の画像を保持する内部ポインタが存在します。 Imagick クラスのすべての画像に対する操作を行う関数もありますが、 大半の関数は内部ポインタが指す現在の画像に対してのみ操作を行います。 スタック内の現在の画像に対してのみ影響を及ぼす関数については、 そのメソッド名に Image という単語を含める決まりになっています。

クラスメソッド

あまりにもたくさんのメソッドがあるので、 一般的な用法に絞った簡単な一覧を示します。

目的別のクラスメソッド
画像に対する効果 Get メソッド Set メソッド 画像の読み書き その他
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::adaptiveTresholdImage Imagick::getImageBackgroundColor Imagick::setFilename Imagick::getFilename Imagick::destroy
Imagick::addNoiseImage Imagick::getImageBlob Imagick::getImagesBlob Imagick::setFormat Imagick::getFormat Imagick::getCopyright
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::constrastStretchImage 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::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::imageImage 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::matteFloodFilleImage 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        

目次


ImageMagick
PHP Manual