Gmagick
class Gmagick (View source)
Constants
COLOR_BLACK |
|
COLOR_BLUE |
|
COLOR_CYAN |
|
COLOR_GREEN |
|
COLOR_RED |
|
COLOR_YELLOW |
|
COLOR_MAGENTA |
|
COLOR_OPACITY |
|
COLOR_ALPHA |
|
COLOR_FUZZ |
|
GMAGICK_EXTNUM |
|
COMPOSITE_DEFAULT |
|
COMPOSITE_UNDEFINED |
|
COMPOSITE_NO |
|
COMPOSITE_ADD |
|
COMPOSITE_ATOP |
|
COMPOSITE_BUMPMAP |
|
COMPOSITE_CLEAR |
|
COMPOSITE_COLORIZE |
|
COMPOSITE_COPYBLACK |
|
COMPOSITE_COPYBLUE |
|
COMPOSITE_COPY |
|
COMPOSITE_COPYCYAN |
|
COMPOSITE_COPYGREEN |
|
COMPOSITE_COPYMAGENTA |
|
COMPOSITE_COPYOPACITY |
|
COMPOSITE_COPYRED |
|
COMPOSITE_COPYYELLOW |
|
COMPOSITE_DARKEN |
|
COMPOSITE_DIFFERENCE |
|
COMPOSITE_DISPLACE |
|
COMPOSITE_DISSOLVE |
|
COMPOSITE_HUE |
|
COMPOSITE_IN |
|
COMPOSITE_LIGHTEN |
|
COMPOSITE_LUMINIZE |
|
COMPOSITE_MINUS |
|
COMPOSITE_MODULATE |
|
COMPOSITE_MULTIPLY |
|
COMPOSITE_OUT |
|
COMPOSITE_OVER |
|
COMPOSITE_OVERLAY |
|
COMPOSITE_PLUS |
|
COMPOSITE_REPLACE |
|
COMPOSITE_SATURATE |
|
COMPOSITE_SCREEN |
|
COMPOSITE_SUBTRACT |
|
COMPOSITE_THRESHOLD |
|
COMPOSITE_XOR |
|
COMPOSITE_DIVIDE |
|
COMPOSITE_HARDLIGHT |
|
COMPOSITE_EXCLUSION |
|
COMPOSITE_COLORDODGE |
|
COMPOSITE_COLORBURN |
|
COMPOSITE_SOFTLIGHT |
|
COMPOSITE_LINEARBURN |
|
COMPOSITE_LINEARDODGE |
|
COMPOSITE_LINEARLIGHT |
|
COMPOSITE_VIVIDLIGHT |
|
COMPOSITE_PINLIGHT |
|
COMPOSITE_HARDMIX |
|
MONTAGEMODE_FRAME |
|
MONTAGEMODE_UNFRAME |
|
MONTAGEMODE_CONCATENATE |
|
STYLE_NORMAL |
|
STYLE_ITALIC |
|
STYLE_OBLIQUE |
|
STYLE_ANY |
|
FILTER_UNDEFINED |
|
FILTER_POINT |
|
FILTER_BOX |
|
FILTER_TRIANGLE |
|
FILTER_HERMITE |
|
FILTER_HANNING |
|
FILTER_HAMMING |
|
FILTER_BLACKMAN |
|
FILTER_GAUSSIAN |
|
FILTER_QUADRATIC |
|
FILTER_CUBIC |
|
FILTER_CATROM |
|
FILTER_MITCHELL |
|
FILTER_LANCZOS |
|
FILTER_BESSEL |
|
FILTER_SINC |
|
IMGTYPE_UNDEFINED |
|
IMGTYPE_BILEVEL |
|
IMGTYPE_GRAYSCALE |
|
IMGTYPE_GRAYSCALEMATTE |
|
IMGTYPE_PALETTE |
|
IMGTYPE_PALETTEMATTE |
|
IMGTYPE_TRUECOLOR |
|
IMGTYPE_TRUECOLORMATTE |
|
IMGTYPE_COLORSEPARATION |
|
IMGTYPE_COLORSEPARATIONMATTE |
|
IMGTYPE_OPTIMIZE |
|
RESOLUTION_UNDEFINED |
|
RESOLUTION_PIXELSPERINCH |
|
RESOLUTION_PIXELSPERCENTIMETER |
|
COMPRESSION_UNDEFINED |
|
COMPRESSION_NO |
|
COMPRESSION_BZIP |
|
COMPRESSION_FAX |
|
COMPRESSION_GROUP4 |
|
COMPRESSION_JPEG |
|
COMPRESSION_LOSSLESSJPEG |
|
COMPRESSION_LZW |
|
COMPRESSION_RLE |
|
COMPRESSION_ZIP |
|
COMPRESSION_GROUP3 |
|
COMPRESSION_LZMA |
|
COMPRESSION_JPEG2000 |
|
COMPRESSION_JBIG1 |
|
COMPRESSION_JBIG2 |
|
INTERLACE_NONE |
|
INTERLACE_LINE |
|
INTERLACE_PLANE |
|
INTERLACE_PARTITION |
|
PAINT_POINT |
|
PAINT_REPLACE |
|
PAINT_FLOODFILL |
|
PAINT_FILLTOBORDER |
|
PAINT_RESET |
|
GRAVITY_NORTHWEST |
|
GRAVITY_NORTH |
|
GRAVITY_NORTHEAST |
|
GRAVITY_WEST |
|
GRAVITY_CENTER |
|
GRAVITY_EAST |
|
GRAVITY_SOUTHWEST |
|
GRAVITY_SOUTH |
|
GRAVITY_SOUTHEAST |
|
STRETCH_NORMAL |
|
STRETCH_ULTRACONDENSED |
|
STRETCH_CONDENSED |
|
STRETCH_SEMICONDENSED |
|
STRETCH_SEMIEXPANDED |
|
STRETCH_EXPANDED |
|
STRETCH_EXTRAEXPANDED |
|
STRETCH_ULTRAEXPANDED |
|
STRETCH_ANY |
|
STRETCH_EXTRACONDENSED |
|
ALIGN_UNDEFINED |
|
ALIGN_LEFT |
|
ALIGN_CENTER |
|
ALIGN_RIGHT |
|
DECORATION_NO |
|
DECORATION_UNDERLINE |
|
DECORATION_OVERLINE |
|
DECORATION_LINETROUGH |
|
NOISE_UNIFORM |
|
NOISE_GAUSSIAN |
|
NOISE_MULTIPLICATIVEGAUSSIAN |
|
NOISE_IMPULSE |
|
NOISE_LAPLACIAN |
|
NOISE_POISSON |
|
NOISE_RANDOM |
|
CHANNEL_UNDEFINED |
|
CHANNEL_RED |
|
CHANNEL_GRAY |
|
CHANNEL_CYAN |
|
CHANNEL_GREEN |
|
CHANNEL_MAGENTA |
|
CHANNEL_BLUE |
|
CHANNEL_YELLOW |
|
CHANNEL_OPACITY |
|
CHANNEL_MATTE |
|
CHANNEL_BLACK |
|
CHANNEL_INDEX |
|
CHANNEL_ALL |
|
CHANNEL_DEFAULT |
|
METRIC_UNDEFINED |
|
METRIC_MEANABSOLUTEERROR |
|
METRIC_MEANSQUAREERROR |
|
METRIC_PEAKABSOLUTEERROR |
|
METRIC_PEAKSIGNALTONOISERATIO |
|
METRIC_ROOTMEANSQUAREDERROR |
|
PIXEL_CHAR |
|
PIXEL_DOUBLE |
|
PIXEL_FLOAT |
|
PIXEL_INTEGER |
|
PIXEL_LONG |
|
PIXEL_SHORT |
|
COLORSPACE_UNDEFINED |
|
COLORSPACE_RGB |
|
COLORSPACE_GRAY |
|
COLORSPACE_TRANSPARENT |
|
COLORSPACE_OHTA |
|
COLORSPACE_LAB |
|
COLORSPACE_XYZ |
|
COLORSPACE_YCBCR |
|
COLORSPACE_YCC |
|
COLORSPACE_YIQ |
|
COLORSPACE_YPBPR |
|
COLORSPACE_YUV |
|
COLORSPACE_CMYK |
|
COLORSPACE_SRGB |
|
COLORSPACE_HSL |
|
COLORSPACE_HWB |
|
COLORSPACE_REC601LUMA |
|
COLORSPACE_REC709LUMA |
|
COLORSPACE_CINEONLOGRGB |
|
COLORSPACE_REC601YCBCR |
|
COLORSPACE_REC709YCBCR |
|
VIRTUALPIXELMETHOD_UNDEFINED |
|
VIRTUALPIXELMETHOD_CONSTANT |
|
VIRTUALPIXELMETHOD_EDGE |
|
VIRTUALPIXELMETHOD_MIRROR |
|
VIRTUALPIXELMETHOD_TILE |
|
PREVIEW_UNDEFINED |
|
PREVIEW_ROTATE |
|
PREVIEW_SHEAR |
|
PREVIEW_ROLL |
|
PREVIEW_HUE |
|
PREVIEW_SATURATION |
|
PREVIEW_BRIGHTNESS |
|
PREVIEW_GAMMA |
|
PREVIEW_SPIFF |
|
PREVIEW_DULL |
|
PREVIEW_GRAYSCALE |
|
PREVIEW_QUANTIZE |
|
PREVIEW_DESPECKLE |
|
PREVIEW_REDUCENOISE |
|
PREVIEW_ADDNOISE |
|
PREVIEW_SHARPEN |
|
PREVIEW_BLUR |
|
PREVIEW_THRESHOLD |
|
PREVIEW_EDGEDETECT |
|
PREVIEW_SPREAD |
|
PREVIEW_SOLARIZE |
|
PREVIEW_SHADE |
|
PREVIEW_RAISE |
|
PREVIEW_SEGMENT |
|
PREVIEW_SWIRL |
|
PREVIEW_IMPLODE |
|
PREVIEW_WAVE |
|
PREVIEW_OILPAINT |
|
PREVIEW_CHARCOALDRAWING |
|
PREVIEW_JPEG |
|
RENDERINGINTENT_UNDEFINED |
|
RENDERINGINTENT_SATURATION |
|
RENDERINGINTENT_PERCEPTUAL |
|
RENDERINGINTENT_ABSOLUTE |
|
RENDERINGINTENT_RELATIVE |
|
INTERLACE_UNDEFINED |
|
INTERLACE_NO |
|
FILLRULE_UNDEFINED |
|
FILLRULE_EVENODD |
|
FILLRULE_NONZERO |
|
PATHUNITS_USERSPACE |
|
PATHUNITS_USERSPACEONUSE |
|
PATHUNITS_OBJECTBOUNDINGBOX |
|
LINECAP_UNDEFINED |
|
LINECAP_BUTT |
|
LINECAP_ROUND |
|
LINECAP_SQUARE |
|
LINEJOIN_UNDEFINED |
|
LINEJOIN_MITER |
|
LINEJOIN_ROUND |
|
LINEJOIN_BEVEL |
|
RESOURCETYPE_UNDEFINED |
|
RESOURCETYPE_AREA |
|
RESOURCETYPE_DISK |
|
RESOURCETYPE_FILE |
|
RESOURCETYPE_MAP |
|
RESOURCETYPE_MEMORY |
|
RESOURCETYPE_PIXELS |
|
RESOURCETYPE_THREADS |
|
RESOURCETYPE_WIDTH |
|
RESOURCETYPE_HEIGHT |
|
DISPOSE_UNDEFINED |
|
DISPOSE_NONE |
|
DISPOSE_BACKGROUND |
|
DISPOSE_PREVIOUS |
|
ORIENTATION_UNDEFINED |
|
ORIENTATION_TOPLEFT |
|
ORIENTATION_TOPRIGHT |
|
ORIENTATION_BOTTOMRIGHT |
|
ORIENTATION_BOTTOMLEFT |
|
ORIENTATION_LEFTTOP |
|
ORIENTATION_RIGHTTOP |
|
ORIENTATION_RIGHTBOTTOM |
|
ORIENTATION_LEFTBOTTOM |
|
QUANTUM_DEPTH |
|
QUANTUM |
|
VERSION_LIB |
|
VERSION_NUM |
|
VERSION_TXT |
|
Methods
The Gmagick constructor.
Adds random noise to the image.
Annotates an image with text.
Surrounds the image with a border of the color defined by the bordercolor GmagickPixel object or a color string.
Simulates a charcoal drawing.
Removes a region of an image and collapses the image to occupy the removed portion.
Adds a comment to your image.
Composite one image onto another at the specified offset.
Creates a fixed size thumbnail by first scaling the image down and cropping a specified area from the center.
Returns reference to the current gmagick object with image pointer at the correct sequence.
Displaces an image's colormap by a given number of positions.
Compares each image with the next in a sequence.
Reduces the speckle noise in an image while preserving the edges of the original image.
Destroys the Gmagick object and frees all resources associated with it.
Enhance edges within the image with a convolution filter of the given radius.
Returns a grayscale image with a three-dimensional effect.
Applies a digital filter that improves the quality of a noisy image.
Equalizes the image histogram.
Creates a vertical mirror image by reflecting the pixels around the central x-axis.
Creates a horizontal mirror image by reflecting the pixels around the central y-axis.
Adds a simulated three-dimensional border around the image.
Gamma-corrects an image.
Returns the GraphicsMagick API copyright as a string.
Returns the filename associated with an image sequence.
Returns the image background color.
Returns the chromaticity blue primary point for the image.
Returns the image border color.
Gets the depth for a particular image channel.
Returns the color of the specified colormap index.
Gets the image colorspace.
Returns the composite operator associated with the image.
Gets the image delay.
Gets the depth of the image.
Gets the image disposal method.
Gets the extrema for the image.
Returns the filename of a particular image in a sequence.
Returns the format of a particular image in a sequence.
Gets the image gamma.
Returns the chromaticy green primary point.
Returns the image height.
Gets the image histogram.
Returns the index of the current active image within the Gmagick object.
Gets the image interlace scheme.
Gets the image iterations.
Checks if the image has a matte channel.
Returns the image matte color.
Returns the named image profile.
Returns the chromaticity red primary point.
Gets the image rendering intent.
Gets the image X and Y resolution.
Gets the image scene.
Generates an SHA-256 message digest for the image pixel stream.
Gets the potential image type.
Gets the image units of resolution.
Returns the chromaticity white point.
Returns the width of the image.
Returns the GraphicsMagick package name.
Returns the Gmagick quantum depth.
Returns the GraphicsMagick release date as a string.
Gets the horizontal and vertical sampling factor.
Returns the size associated with the Gmagick object.
Returns the GraphicsMagick API version.
Checks if the object has more images.
Checks if the object has a previous image.
Creates a new image that is a copy of an existing one with the image pixels "imploded" by the specified percentage.
Adds a label to an image.
Adjusts the levels of an image.
Scales an image proportionally 2x.
Replaces the colors of an image with the closest color from a reference image.
Applies a digital filter that improves the quality of a noisy image.
Scales an image proportionally to half its size.
Controls the brightness, saturation, and hue.
Simulates motion blur.
Creates a new image.
Moves to the next image.
Enhances the contrast of a color image.
Simulates an oil painting.
Move to the previous image in the object.
Adds or removes a profile from an image.
Analyzes the colors within a reference image.
The quantizeimages purpose.
Returns fonts supported by Gmagick.
Returns formats supported by Gmagick.
Radial blurs an image.
Creates a simulated 3d button-like effect.
Reads image from a binary string.
Reads an image or image sequence from an open file descriptor.
Smooths the contours of an image.
Removes an image from the image list.
Removes the named image profile and returns it.
Resample image to desired resolution.
Scales an image to the desired dimensions with a filter.
Rotates an image the specified number of degrees.
Scales the size of an image to the given dimensions.
Separates a channel from the image and returns a grayscale image.
Sets the object's default compression quality.
Sets the filename before you read or write the image.
Sets the image chromaticity blue primary point.
Sets the depth of a particular image channel.
Sets the image colorspace.
Sets the image composite operator.
Sets the image delay.
Sets the image depth.
Sets the image disposal method.
Sets the filename of a particular image in a sequence.
Sets the format of a particular image in a sequence.
Sets the image gamma.
Sets the image chromaticity green primary point.
Sets the iterator to the position in the image list specified with the index parameter.
Sets the interlace scheme of the image.
Sets the image iterations.
Adds a named profile to the Gmagick object.
Sets the image chromaticity red primary point.
Sets the image rendering intent.
Sets the image resolution.
Sets the image scene.
Sets the image type.
Sets the image units of resolution.
Sets the image chromaticity white point.
Sets the image sampling factors.
Slides one edge of an image along the X or Y axis, creating a parallelogram.
Applies a solarizing effect to the image.
Randomly displaces each pixel in a block.
Strips an image of all profiles and comments.
Swirls the pixels about the center of the image.
Changes the size of an image to the given dimensions and removes any associated profiles.
Writes an image to the specified filename.
Details
__construct(string $filename = null)
The Gmagick constructor.
Gmagick
addimage(Gmagick $Gmagick)
Adds new image to Gmagick object from the current position of the source object.
After the operation iterator position is moved at the end of the list.
Gmagick
addnoiseimage(int $NOISE)
Adds random noise to the image.
Gmagick
annotateimage(GmagickDraw $GmagickDraw, float $x, float $y, float $angle, string $text)
Annotates an image with text.
Gmagick
blurimage(float $radius, float $sigma, int $channel = null)
Adds blur filter to image.
Gmagick
borderimage(GmagickPixel $color, int $width, int $height)
Surrounds the image with a border of the color defined by the bordercolor GmagickPixel object or a color string.
Gmagick
charcoalimage(float $radius, float $sigma)
Simulates a charcoal drawing.
Gmagick
chopimage(int $width, int $height, int $x, int $y)
Removes a region of an image and collapses the image to occupy the removed portion.
Gmagick
clear()
Clears all resources associated to Gmagick object.
Gmagick
commentimage(string $comment)
Adds a comment to your image.
Gmagick
compositeimage(Gmagick $source, int $COMPOSE, int $x, int $y)
Composite one image onto another at the specified offset.
Gmagick
cropimage(int $width, int $height, int $x, int $y)
Extracts a region of the image.
Gmagick
cropthumbnailimage(int $width, int $height)
Creates a fixed size thumbnail by first scaling the image down and cropping a specified area from the center.
Gmagick
current()
Returns reference to the current gmagick object with image pointer at the correct sequence.
Gmagick
cyclecolormapimage(int $displace)
Displaces an image's colormap by a given number of positions.
If you cycle the colormap a number of times you can produce a psychedelic effect.
Gmagick
deconstructimages()
Compares each image with the next in a sequence.
Returns the maximum bounding region of any pixel differences it discovers.
Gmagick
despeckleimage()
Reduces the speckle noise in an image while preserving the edges of the original image.
bool
destroy()
Destroys the Gmagick object and frees all resources associated with it.
Gmagick
drawimage(GmagickDraw $GmagickDraw)
Renders the GmagickDraw object on the current image.
Gmagick
edgeimage(float $radius)
Enhance edges within the image with a convolution filter of the given radius.
Use radius 0 and it will be auto-selected.
Gmagick
embossimage(float $radius, float $sigma)
Returns a grayscale image with a three-dimensional effect.
We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, radius should be larger than sigma. Use a radius of 0 and it will choose a suitable radius for you.
Gmagick
enhanceimage()
Applies a digital filter that improves the quality of a noisy image.
Gmagick
equalizeimage()
Equalizes the image histogram.
Gmagick
flipimage()
Creates a vertical mirror image by reflecting the pixels around the central x-axis.
Gmagick
flopimage()
Creates a horizontal mirror image by reflecting the pixels around the central y-axis.
Gmagick
frameimage(GmagickPixel $color, int $width, int $height, int $inner_bevel, int $outer_bevel)
Adds a simulated three-dimensional border around the image.
The width and height specify the border width of the vertical and horizontal sides of the frame. The inner and outer bevels indicate the width of the inner and outer shadows of the frame.
Gmagick
gammaimage(float $gamma)
Gamma-corrects an image.
The same image viewed on different devices will have perceptual differences in the way the image's intensities are represented on the screen. Specify individual gamma levels for the red, green, and blue channels, or adjust all three with the gamma parameter. Values typically range from 0.8 to 2.3.
string
getcopyright()
Returns the GraphicsMagick API copyright as a string.
string
getfilename()
Returns the filename associated with an image sequence.
GmagickPixel
getimagebackgroundcolor()
Returns the image background color.
array
getimageblueprimary()
Returns the chromaticity blue primary point for the image.
GmagickPixel
getimagebordercolor()
Returns the image border color.
int
getimagechanneldepth(int $channel_type)
Gets the depth for a particular image channel.
int
getimagecolors()
Returns the color of the specified colormap index.
int
getimagecolorspace()
Gets the image colorspace.
int
getimagecompose()
Returns the composite operator associated with the image.
int
getimagedelay()
Gets the image delay.
int
getimagedepth()
Gets the depth of the image.
int
getimagedispose()
Gets the image disposal method.
array
getimageextrema()
Gets the extrema for the image.
string
getimagefilename()
Returns the filename of a particular image in a sequence.
string
getimageformat()
Returns the format of a particular image in a sequence.
float
getimagegamma()
Gets the image gamma.
array
getimagegreenprimary()
Returns the chromaticy green primary point.
int
getimageheight()
Returns the image height.
array
getimagehistogram()
Gets the image histogram.
int
getimageindex()
Returns the index of the current active image within the Gmagick object.
int
getimageinterlacescheme()
Gets the image interlace scheme.
int
getimageiterations()
Gets the image iterations.
bool
getimagematte()
Checks if the image has a matte channel.
GmagickPixel
getimagemattecolor()
Returns the image matte color.
string
getimageprofile(string $name)
Returns the named image profile.
array
getimageredprimary()
Returns the chromaticity red primary point.
int
getimagerenderingintent()
Gets the image rendering intent.
array
getimageresolution()
Gets the image X and Y resolution.
int
getimagescene()
Gets the image scene.
string
getimagesignature()
Generates an SHA-256 message digest for the image pixel stream.
int
getimagetype()
Gets the potential image type.
int
getimageunits()
Gets the image units of resolution.
array
getimagewhitepoint()
Returns the chromaticity white point.
int
getimagewidth()
Returns the width of the image.
string
getpackagename()
Returns the GraphicsMagick package name.
array
getquantumdepth()
Returns the Gmagick quantum depth.
string
getreleasedate()
Returns the GraphicsMagick release date as a string.
array
getsamplingfactors()
Gets the horizontal and vertical sampling factor.
array
getsize()
Returns the size associated with the Gmagick object.
array
getversion()
Returns the GraphicsMagick API version.
bool
hasnextimage()
Checks if the object has more images.
bool
haspreviousimage()
Checks if the object has a previous image.
mixed
implodeimage(float $radius)
Creates a new image that is a copy of an existing one with the image pixels "imploded" by the specified percentage.
mixed
labelimage(string $label)
Adds a label to an image.
mixed
levelimage(float $blackPoint, float $gamma, float $whitePoint, int $channel = false)
Adjusts the levels of an image.
Adjusts the levels of an image by scaling the colors falling between specified white and black points to the full available quantum range. The parameters provided represent the black, mid, and white points. The black point specifies the darkest color in the image. Colors darker than the black point are set to zero. Mid point specifies a gamma correction to apply to the image. White point specifies the lightest color in the image. Colors brighter than the white point are set to the maximum quantum value.
mixed
magnifyimage()
Scales an image proportionally 2x.
Gmagick
mapimage(gmagick $gmagick, bool $dither)
Replaces the colors of an image with the closest color from a reference image.
void
medianfilterimage(float $radius)
Applies a digital filter that improves the quality of a noisy image.
Each pixel is replaced by the median in a set of neighboring pixels as defined by radius.
Gmagick
minifyimage()
Scales an image proportionally to half its size.
Gmagick
modulateimage(float $brightness, float $saturation, float $hue)
Controls the brightness, saturation, and hue.
Gmagick
motionblurimage(float $radius, float $sigma, float $angle)
Simulates motion blur.
We convolve the image with a Gaussian operator of the given radius and standard deviation (sigma). For reasonable results, radius should be larger than sigma. Use a radius of 0 and MotionBlurImage() selects a suitable radius for you. Angle gives the angle of the blurring motion.
Gmagick
newimage(int $width, int $height, string $background, string $format = null)
Creates a new image.
bool
nextimage()
Moves to the next image.
Associates the next image in the image list with an Gmagick object.
Gmagick
normalizeimage(int $channel = null)
Enhances the contrast of a color image.
Gmagick
oilpaintimage(float $radius)
Simulates an oil painting.
Applies a special effect filter that simulates an oil painting. Each pixel is replaced by the most frequent color occurring in a circular region defined by radius.
bool
previousimage()
Move to the previous image in the object.
Associates the previous image in an image list with the Gmagick object.
Gmagick
profileimage(string $name, string $profile)
Adds or removes a profile from an image.
Adds or removes a ICC, IPTC, or generic profile from an image. If the profile is NULL, it is removed from the image otherwise added. Use a name of '*' and a profile of NULL to remove all profiles from the image.
Gmagick
quantizeimage(int $numColors, int $colorspace, int $treeDepth, bool $dither, bool $measureError)
Analyzes the colors within a reference image.
Analyzes the colors within a reference image and chooses a fixed number of colors to represent the image. The goal of the algorithm is to minimize the color difference between the input and output image while minimizing the processing time.
Gmagick
quantizeimages(int $numColors, int $colorspace, int $treeDepth, bool $dither, bool $measureError)
The quantizeimages purpose.
Analyzes the colors within a sequence of images and chooses a fixed number of colors to represent the image. The goal of the algorithm is to minimize the color difference between the input and output image while minimizing the processing time.
array
queryfontmetrics(GmagickDraw $draw, string $text)
Returns an array representing the font metrics.
array
queryfonts(string $pattern = '*')
Returns fonts supported by Gmagick.
array
queryformats(string $pattern = '*')
Returns formats supported by Gmagick.
Gmagick
radialblurimage(float $angle, int $channel = Gmagick::CHANNEL_DEFAULT)
Radial blurs an image.
Gmagick
raiseimage(int $width, int $height, int $x, int $y, bool $raise)
Creates a simulated 3d button-like effect.
Creates a simulated three-dimensional button-like effect by lightening and darkening the edges of the image. Members width and height of raise_info define the width of the vertical and horizontal edge of the effect.
Gmagick
read(string $filename)
Reads image from filename.
This is an alias for readimage().
Gmagick
readimage(string $filename)
Reads image from filename.
Gmagick
readimageblob(string $imageContents, string $filename = null)
Reads image from a binary string.
Gmagick
readimagefile(resource $fp, string $filename = null)
Reads an image or image sequence from an open file descriptor.
Gmagick
reducenoiseimage(float $radius)
Smooths the contours of an image.
Smooths the contours of an image while still preserving edge information. The algorithm works by replacing each pixel with its neighbor closest in value. A neighbor is defined by radius. Use a radius of 0 and Gmagick::reduceNoiseImage() selects a suitable radius for you.
Gmagick
removeimage()
Removes an image from the image list.
string
removeimageprofile(string $name)
Removes the named image profile and returns it.
Gmagick
resampleimage(float $xResolution, float $yResolution, int $filter, float $blur)
Resample image to desired resolution.
Gmagick
resizeimage(int $width, int $height, int $filter, float $blur, bool $fit = false)
Scales an image to the desired dimensions with a filter.
Gmagick
rollimage(int $x, int $y)
Offsets an image as defined by x and y.
Gmagick
rotateimage(mixed $color, float $degrees)
Rotates an image the specified number of degrees.
Empty triangles left over from rotating the image are filled with the background color.
Gmagick
scaleimage(int $width, int $height, bool $fit = false)
Scales the size of an image to the given dimensions.
The other parameter will be calculated if 0 is passed as either param.
Gmagick
separateimagechannel(int $channel)
Separates a channel from the image and returns a grayscale image.
A channel is a particular color component of each pixel in the image.
Gmagick
setCompressionQuality(int $quality = 75)
Sets the object's default compression quality.
Gmagick
setfilename(string $filename)
Sets the filename before you read or write the image.
Gmagick
setimagebackgroundcolor(GmagickPixel $color)
Sets the image background color.
Gmagick
setimageblueprimary(float $x, float $y)
Sets the image chromaticity blue primary point.
Gmagick
setimagebordercolor(GmagickPixel $color)
Sets the image border color.
Gmagick
setimagechanneldepth(int $channel, int $depth)
Sets the depth of a particular image channel.
Gmagick
setimagecolorspace(int $colorspace)
Sets the image colorspace.
Gmagick
setimagecompose(int $composite)
Sets the image composite operator.
Gmagick
setimagedelay(int $delay)
Sets the image delay.
Gmagick
setimagedepth(int $depth)
Sets the image depth.
Gmagick
setimagedispose(int $disposeType)
Sets the image disposal method.
Gmagick
setimagefilename(string $filename)
Sets the filename of a particular image in a sequence.
Gmagick
setimageformat(string $imageFormat)
Sets the format of a particular image in a sequence.
Gmagick
setimagegamma(float $gamma)
Sets the image gamma.
Gmagick
setimagegreenprimary(float $x, float $y)
Sets the image chromaticity green primary point.
Gmagick
setimageindex(int $index)
Sets the iterator to the position in the image list specified with the index parameter.
Gmagick
setimageinterlacescheme(int $interlace)
Sets the interlace scheme of the image.
Gmagick
setimageiterations(int $iterations)
Sets the image iterations.
Gmagick
setimageprofile(string $name, string $profile)
Adds a named profile to the Gmagick object.
If a profile with the same name already exists, it is replaced. This method differs from the Gmagick::profileimage() method in that it does not apply any CMS color profiles.
Gmagick
setimageredprimary(float $x, float $y)
Sets the image chromaticity red primary point.
Gmagick
setimagerenderingintent(int $rendering_intent)
Sets the image rendering intent.
Gmagick
setimageresolution(float $xResolution, float $yResolution)
Sets the image resolution.
Gmagick
setimagescene(int $scene)
Sets the image scene.
Gmagick
setimagetype(int $imgType)
Sets the image type.
Gmagick
setimageunits(int $resolution)
Sets the image units of resolution.
Gmagick
setimagewhitepoint(float $x, float $y)
Sets the image chromaticity white point.
Gmagick
setsamplingfactors(array $factors)
Sets the image sampling factors.
Gmagick
setsize(int $columns, int $rows)
Sets the size of the Gmagick object.
Set it before you read a raw image format such as RGB, GRAY, or CMYK.
Gmagick
shearimage(mixed $color, float $xShear, float $yShear)
Slides one edge of an image along the X or Y axis, creating a parallelogram.
An X direction shear slides an edge along the X axis, while a Y direction shear slides an edge along the Y axis. The amount of the shear is controlled by a shear angle. For X direction shears, x_shear is measured relative to the Y axis, and similarly, for Y direction shears y_shear is measured relative to the X axis. Empty triangles left over from shearing the image are filled with the background color.
Gmagick
solarizeimage(int $threshold)
Applies a solarizing effect to the image.
Applies a special effect to the image, similar to the effect achieved in a photo darkroom by selectively exposing areas of photo sensitive paper to light. Threshold ranges from 0 to QuantumRange and is a measure of the extent of the solarization.
Gmagick
spreadimage(float $radius)
Randomly displaces each pixel in a block.
Special effects method that randomly displaces each pixel in a block defined by the radius parameter.
Gmagick
stripimage()
Strips an image of all profiles and comments.
Gmagick
swirlimage(float $degrees)
Swirls the pixels about the center of the image.
Swirls the pixels about the center of the image, where degrees indicates the sweep of the arc through which each pixel is moved. You get a more dramatic effect as the degrees move from 1 to 360.
Gmagick
thumbnailimage(int $width, int $height, bool $fit = false)
Changes the size of an image to the given dimensions and removes any associated profiles.
The goal is to produce small low cost thumbnail images suited for display on the Web. If TRUE is given as a third parameter then columns and rows parameters are used as maximums for each side. Both sides will be scaled down until the match or are smaller than the parameter given for the side.
Gmagick
trimimage(float $fuzz)
Remove edges that are the background color from the image.
Gmagick
write(string $filename)
Writes an image to the specified filename.
Writes an image to the specified filename. If the filename parameter is NULL, the image is written to the filename set by Gmagick::ReadImage() or Gmagick::SetImageFilename().
This is an alias for writeimage().
Gmagick
writeimage(string $filename, bool $all_frames = false)
Writes an image to the specified filename.
Writes an image to the specified filename. If the filename parameter is NULL, the image is written to the filename set by Gmagick::ReadImage() or Gmagick::SetImageFilename().