PHP 8.6.0 Beta 3 is available for testing

Costanti predefinite

Queste costanti sono definite da questa estensione e sono disponibili solo se l'estensione è stata compilata nel PHP o se è stata caricata dinamicamente a runtime.

COLOR_* constants

Colortype constants. These constants are mainly used with ImagickPixel.

imagick::COLOR_BLACK (int)

Black color

imagick::COLOR_BLUE (int)

Blue color

imagick::COLOR_CYAN (int)

Cyan color

imagick::COLOR_GREEN (int)

Green color

imagick::COLOR_RED (int)

Red color

imagick::COLOR_YELLOW (int)

Yellow color

imagick::COLOR_MAGENTA (int)

Magenta color

imagick::COLOR_OPACITY (int)

Color's opacity

imagick::COLOR_ALPHA (int)

Color's alpha

imagick::COLOR_FUZZ (int)

Color's fuzz

DISPOSE_* constants

Dispose type constants

imagick::DISPOSE_UNRECOGNIZED (int)

Unrecognized dispose type

imagick::DISPOSE_UNDEFINED (int)

Undefined dispose type

imagick::DISPOSE_NONE (int)

No dispose type defined

imagick::DISPOSE_BACKGROUND (int)

Dispose background

imagick::DISPOSE_PREVIOUS (int)

Dispose previous

COMPOSITE_* constants
imagick::COMPOSITE_DEFAULT (int)

The default composite operator

imagick::COMPOSITE_UNDEFINED (int)

Undefined composite operator

imagick::COMPOSITE_NO (int)

No composite operator defined

imagick::COMPOSITE_ADD (int)

The result of image + image

imagick::COMPOSITE_ATOP (int)

The result is the same shape as image, with composite image obscuring image where the image shapes overlap

imagick::COMPOSITE_BLEND (int)

Blends the image

imagick::COMPOSITE_BUMPMAP (int)

The same as COMPOSITE_MULTIPLY, except the source is converted to grayscale first.

imagick::COMPOSITE_CLEAR (int)

Makes the target image transparent

imagick::COMPOSITE_COLORBURN (int)

Darkens the destination image to reflect the source image

imagick::COMPOSITE_COLORDODGE (int)

Brightens the destination image to reflect the source image

imagick::COMPOSITE_COLORIZE (int)

Colorizes the target image using the composite image

imagick::COMPOSITE_COPYBLACK (int)

Copies black from the source to target

imagick::COMPOSITE_COPYBLUE (int)

Copies blue from the source to target

imagick::COMPOSITE_COPY (int)

Copies the source image on the target image

imagick::COMPOSITE_COPYCYAN (int)

Copies cyan from the source to target

imagick::COMPOSITE_COPYGREEN (int)

Copies green from the source to target

imagick::COMPOSITE_COPYMAGENTA (int)

Copies magenta from the source to target

imagick::COMPOSITE_COPYOPACITY (int)

Copies opacity from the source to target

imagick::COMPOSITE_COPYRED (int)

Copies red from the source to target

imagick::COMPOSITE_COPYYELLOW (int)

Copies yellow from the source to target

imagick::COMPOSITE_DARKEN (int)

Darkens the target image

imagick::COMPOSITE_DSTATOP (int)

The part of the destination lying inside of the source is composited over the source and replaces the destination

imagick::COMPOSITE_DST (int)

The target is left untouched

imagick::COMPOSITE_DSTIN (int)

The parts inside the source replace the target

imagick::COMPOSITE_DSTOUT (int)

The parts outside the source replace the target

imagick::COMPOSITE_DSTOVER (int)

Target replaces the source

imagick::COMPOSITE_DIFFERENCE (int)

Subtracts the darker of the two constituent colors from the lighter

imagick::COMPOSITE_DISPLACE (int)

Shifts target image pixels as defined by the source

imagick::COMPOSITE_DISSOLVE (int)

Dissolves the source in to the target

imagick::COMPOSITE_EXCLUSION (int)

Produces an effect similar to that of imagick::COMPOSITE_DIFFERENCE, but appears as lower contrast

imagick::COMPOSITE_HARDLIGHT (int)

Multiplies or screens the colors, dependent on the source color value

imagick::COMPOSITE_HUE (int)

Modifies the hue of the target as defined by source

imagick::COMPOSITE_IN (int)

Composites source into the target

imagick::COMPOSITE_LIGHTEN (int)

Lightens the target as defined by source

imagick::COMPOSITE_LUMINIZE (int)

Luminizes the target as defined by source

imagick::COMPOSITE_MINUS (int)

Subtracts the source from the target

imagick::COMPOSITE_MODULATE (int)

Modulates the target brightness, saturation and hue as defined by source

imagick::COMPOSITE_MULTIPLY (int)

Multiplies the target to the source

imagick::COMPOSITE_OUT (int)

Composites outer parts of the source on the target

imagick::COMPOSITE_OVER (int)

Composites source over the target

imagick::COMPOSITE_OVERLAY (int)

Overlays the source on the target

imagick::COMPOSITE_PLUS (int)

Adds the source to the target

imagick::COMPOSITE_REPLACE (int)

Replaces the target with the source

imagick::COMPOSITE_SATURATE (int)

Saturates the target as defined by the source

imagick::COMPOSITE_SCREEN (int)

The source and destination are complemented and then multiplied and then replace the destination

imagick::COMPOSITE_SOFTLIGHT (int)

Darkens or lightens the colors, dependent on the source

imagick::COMPOSITE_SRCATOP (int)

The part of the source lying inside of the destination is composited onto the destination

imagick::COMPOSITE_SRC (int)

The source is copied to the destination

imagick::COMPOSITE_SRCIN (int)

The part of the source lying inside of the destination replaces the destination

imagick::COMPOSITE_SRCOUT (int)

The part of the source lying outside of the destination replaces the destination

imagick::COMPOSITE_SRCOVER (int)

The source replaces the destination

imagick::COMPOSITE_SUBTRACT (int)

Subtract the colors in the source image from the destination image

imagick::COMPOSITE_THRESHOLD (int)

The source is composited on the target as defined by source threshold

imagick::COMPOSITE_XOR (int)

The part of the source that lies outside of the destination is combined with the part of the destination that lies outside of the source

MONTAGEMODE_* constants

imagick::MONTAGEMODE_FRAME (int)

imagick::MONTAGEMODE_UNFRAME (int)

imagick::MONTAGEMODE_CONCATENATE (int)

STYLE_* constants

imagick::STYLE_NORMAL (int)

imagick::STYLE_ITALIC (int)

imagick::STYLE_OBLIQUE (int)

imagick::STYLE_ANY (int)

FILTER_* constants

imagick::FILTER_UNDEFINED (int)

imagick::FILTER_POINT (int)

imagick::FILTER_BOX (int)

imagick::FILTER_TRIANGLE (int)

imagick::FILTER_HERMITE (int)

imagick::FILTER_HANNING (int)

imagick::FILTER_HAMMING (int)

imagick::FILTER_BLACKMAN (int)

imagick::FILTER_GAUSSIAN (int)

imagick::FILTER_QUADRATIC (int)

imagick::FILTER_CUBIC (int)

imagick::FILTER_CATROM (int)

imagick::FILTER_MITCHELL (int)

imagick::FILTER_LANCZOS (int)

imagick::FILTER_BESSEL (int)

imagick::FILTER_SINC (int)

IMGTYPE_* constants

An image type combines a color model with the presence or absence of an alpha channel. Passing one of these constants to Imagick::setImageType() converts the image to that type. Imagick::getImageType() reports the type of an image, but only ever returns a type that describes actual pixel data, never imagick::IMGTYPE_UNDEFINED or imagick::IMGTYPE_OPTIMIZE.

The constants whose name ends in MATTE are the variants that carry an alpha channel; the others have none. In ImageMagick 6 the alpha channel was known as the matte channel, and when Imagick is built against ImageMagick 7 each of these constants also exists under an IMGTYPE_*ALPHA name with the same value.

imagick::IMGTYPE_UNDEFINED (int)

The image type is not known. Imagick::setImageType() converts nothing for this value, but still records it on the image.

imagick::IMGTYPE_BILEVEL (int)

Two colors only. The image is converted to grayscale, its contrast is stretched, and every pixel becomes either black or white depending on whether it is lighter or darker than mid-gray; any alpha channel is discarded.

imagick::IMGTYPE_GRAYSCALE (int)

Shades of gray. The image is converted to the grayscale colorspace, and any alpha channel is discarded.

imagick::IMGTYPE_GRAYSCALEMATTE (int)

Shades of gray with an alpha channel. The same as imagick::IMGTYPE_GRAYSCALE, except that the alpha channel is kept, and if the image has none, an opaque one is added.

imagick::IMGTYPE_PALETTE (int)

Indexed color. The image is converted to sRGB and, if it is not already indexed or has more than 256 colors, it is quantized to 256 colors; any alpha channel is discarded.

imagick::IMGTYPE_PALETTEMATTE (int)

Indexed color with an alpha channel. The image is converted to sRGB, the alpha channel is kept, and if the image has none, an opaque one is added. Unlike imagick::IMGTYPE_PALETTE, the colors are quantized even when the image is already indexed, and the alpha channel is included in the quantization.

imagick::IMGTYPE_TRUECOLOR (int)

Direct color: one red, green, and blue value per pixel, with no palette. The image is converted to sRGB, and any alpha channel is discarded.

imagick::IMGTYPE_TRUECOLORMATTE (int)

Direct color with an alpha channel. The same as imagick::IMGTYPE_TRUECOLOR, except that the alpha channel is kept, and if the image has none, an opaque one is added.

imagick::IMGTYPE_COLORSEPARATION (int)

One channel per printing ink, with no palette. The image is converted to the CMYK colorspace, and any alpha channel is discarded.

imagick::IMGTYPE_COLORSEPARATIONMATTE (int)

One channel per printing ink, with no palette, plus an alpha channel. The same as imagick::IMGTYPE_COLORSEPARATION, except that the alpha channel is kept, and if the image has none, an opaque one is added.

imagick::IMGTYPE_PALETTEBILEVELMATTE (int)

Indexed color with a fully transparent or fully opaque alpha channel. The image is converted to sRGB, an opaque alpha channel is added if it has none, that channel alone is reduced to two values, and the colors are then quantized. This is the type of a PNG using binary transparency.

imagick::IMGTYPE_OPTIMIZE (int)

Imagick::setImageType() converts nothing for this value, but still records it on the image.

RESOLUTION_* constants

imagick::RESOLUTION_UNDEFINED (int)

imagick::RESOLUTION_PIXELSPERINCH (int)

imagick::RESOLUTION_PIXELSPERCENTIMETER (int)

COMPRESSION_* constants

imagick::COMPRESSION_UNDEFINED (int)

imagick::COMPRESSION_NO (int)

imagick::COMPRESSION_BZIP (int)

imagick::COMPRESSION_FAX (int)

imagick::COMPRESSION_GROUP4 (int)

imagick::COMPRESSION_JPEG (int)

imagick::COMPRESSION_JPEG2000 (int)

imagick::COMPRESSION_LOSSLESSJPEG (int)

imagick::COMPRESSION_LZW (int)

imagick::COMPRESSION_RLE (int)

imagick::COMPRESSION_ZIP (int)

imagick::COMPRESSION_DXT1 (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.0 or higher.

imagick::COMPRESSION_DXT3 (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.0 or higher.

imagick::COMPRESSION_DXT5 (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.0 or higher.

PAINT_* constants

imagick::PAINT_POINT (int)

imagick::PAINT_REPLACE (int)

imagick::PAINT_FLOODFILL (int)

imagick::PAINT_FILLTOBORDER (int)

imagick::PAINT_RESET (int)

GRAVITY_* constants

imagick::GRAVITY_NORTHWEST (int)

imagick::GRAVITY_NORTH (int)

imagick::GRAVITY_NORTHEAST (int)

imagick::GRAVITY_WEST (int)

imagick::GRAVITY_CENTER (int)

imagick::GRAVITY_EAST (int)

imagick::GRAVITY_SOUTHWEST (int)

imagick::GRAVITY_SOUTH (int)

imagick::GRAVITY_SOUTHEAST (int)

STRETCH_* constants

imagick::STRETCH_NORMAL (int)

imagick::STRETCH_ULTRACONDENSED (int)

imagick::STRETCH_CONDENSED (int)

imagick::STRETCH_SEMICONDENSED (int)

imagick::STRETCH_SEMIEXPANDED (int)

imagick::STRETCH_EXPANDED (int)

imagick::STRETCH_EXTRAEXPANDED (int)

imagick::STRETCH_ULTRAEXPANDED (int)

imagick::STRETCH_ANY (int)

ALIGN_* constants

imagick::ALIGN_UNDEFINED (int)

imagick::ALIGN_LEFT (int)

imagick::ALIGN_CENTER (int)

imagick::ALIGN_RIGHT (int)

DECORATION_* constants

imagick::DECORATION_NO (int)

imagick::DECORATION_UNDERLINE (int)

imagick::DECORATION_OVERLINE (int)

imagick::DECORATION_LINETROUGH (int)

NOISE_* constants

imagick::NOISE_UNIFORM (int)

imagick::NOISE_GAUSSIAN (int)

imagick::NOISE_MULTIPLICATIVEGAUSSIAN (int)

imagick::NOISE_IMPULSE (int)

imagick::NOISE_LAPLACIAN (int)

imagick::NOISE_POISSON (int)

imagick::NOISE_RANDOM (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.6 or higher.

CHANNEL_* constants

imagick::CHANNEL_UNDEFINED (int)

imagick::CHANNEL_RED (int)

imagick::CHANNEL_GRAY (int)

imagick::CHANNEL_CYAN (int)

imagick::CHANNEL_GREEN (int)

imagick::CHANNEL_MAGENTA (int)

imagick::CHANNEL_BLUE (int)

imagick::CHANNEL_YELLOW (int)

imagick::CHANNEL_ALPHA (int)

imagick::CHANNEL_OPACITY (int)

imagick::CHANNEL_MATTE (int)

imagick::CHANNEL_BLACK (int)

imagick::CHANNEL_INDEX (int)

imagick::CHANNEL_ALL (int)

imagick::CHANNEL_DEFAULT (int)

METRIC_* constants

imagick::METRIC_UNDEFINED (int)

imagick::METRIC_MEANABSOLUTEERROR (int)

imagick::METRIC_MEANSQUAREERROR (int)

imagick::METRIC_PEAKABSOLUTEERROR (int)

imagick::METRIC_PEAKSIGNALTONOISERATIO (int)

imagick::METRIC_ROOTMEANSQUAREDERROR (int)

PIXEL_* constants

imagick::PIXEL_CHAR (int)

imagick::PIXEL_DOUBLE (int)

imagick::PIXEL_FLOAT (int)

imagick::PIXEL_INTEGER (int)

Only available for ImageMagick < 7.

imagick::PIXEL_LONG (int)

imagick::PIXEL_QUANTUM (int)

imagick::PIXEL_SHORT (int)

EVALUATE_* constants

imagick::EVALUATE_UNDEFINED (int)

imagick::EVALUATE_ADD (int)

imagick::EVALUATE_AND (int)

imagick::EVALUATE_DIVIDE (int)

imagick::EVALUATE_LEFTSHIFT (int)

imagick::EVALUATE_MAX (int)

imagick::EVALUATE_MIN (int)

imagick::EVALUATE_MULTIPLY (int)

imagick::EVALUATE_OR (int)

imagick::EVALUATE_RIGHTSHIFT (int)

imagick::EVALUATE_SET (int)

imagick::EVALUATE_SUBTRACT (int)

imagick::EVALUATE_XOR (int)

imagick::EVALUATE_POW (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.4 or higher.

imagick::EVALUATE_LOG (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.4 or higher.

imagick::EVALUATE_THRESHOLD (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.4 or higher.

imagick::EVALUATE_THRESHOLDBLACK (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.4 or higher.

imagick::EVALUATE_THRESHOLDWHITE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.4 or higher.

imagick::EVALUATE_GAUSSIANNOISE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.4 or higher.

imagick::EVALUATE_IMPULSENOISE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.4 or higher.

imagick::EVALUATE_LAPLACIANNOISE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.4 or higher.

imagick::EVALUATE_MULTIPLICATIVENOISE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.4 or higher.

imagick::EVALUATE_POISSONNOISE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.4 or higher.

imagick::EVALUATE_UNIFORMNOISE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.4 or higher.

imagick::EVALUATE_COSINE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.4 or higher.

imagick::EVALUATE_SINE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.4 or higher.

imagick::EVALUATE_ADDMODULUS (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.4 or higher.

COLORSPACE_* constants

imagick::COLORSPACE_UNDEFINED (int)

imagick::COLORSPACE_RGB (int)

imagick::COLORSPACE_GRAY (int)

imagick::COLORSPACE_TRANSPARENT (int)

imagick::COLORSPACE_OHTA (int)

imagick::COLORSPACE_LAB (int)

imagick::COLORSPACE_XYZ (int)

imagick::COLORSPACE_YCBCR (int)

imagick::COLORSPACE_YCC (int)

imagick::COLORSPACE_YIQ (int)

imagick::COLORSPACE_YPBPR (int)

imagick::COLORSPACE_YUV (int)

imagick::COLORSPACE_CMYK (int)

imagick::COLORSPACE_SRGB (int)

imagick::COLORSPACE_HSB (int)

imagick::COLORSPACE_HSL (int)

imagick::COLORSPACE_HWB (int)

imagick::COLORSPACE_REC601LUMA (int)

imagick::COLORSPACE_REC709LUMA (int)

imagick::COLORSPACE_LOG (int)

imagick::COLORSPACE_CMY (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.2 or higher.

VIRTUALPIXELMETHOD_* constants

imagick::VIRTUALPIXELMETHOD_UNDEFINED (int)

imagick::VIRTUALPIXELMETHOD_BACKGROUND (int)

imagick::VIRTUALPIXELMETHOD_CONSTANT (int)

imagick::VIRTUALPIXELMETHOD_EDGE (int)

imagick::VIRTUALPIXELMETHOD_MIRROR (int)

imagick::VIRTUALPIXELMETHOD_TILE (int)

imagick::VIRTUALPIXELMETHOD_TRANSPARENT (int)

imagick::VIRTUALPIXELMETHOD_MASK (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.2 or higher.

imagick::VIRTUALPIXELMETHOD_BLACK (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.2 or higher.

imagick::VIRTUALPIXELMETHOD_GRAY (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.2 or higher.

imagick::VIRTUALPIXELMETHOD_WHITE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.2 or higher.

imagick::VIRTUALPIXELMETHOD_HORIZONTALTILE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.3 or higher.

imagick::VIRTUALPIXELMETHOD_VERTICALTILE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.3 or higher.

PREVIEW_* constants

imagick::PREVIEW_UNDEFINED (int)

imagick::PREVIEW_ROTATE (int)

imagick::PREVIEW_SHEAR (int)

imagick::PREVIEW_ROLL (int)

imagick::PREVIEW_HUE (int)

imagick::PREVIEW_SATURATION (int)

imagick::PREVIEW_BRIGHTNESS (int)

imagick::PREVIEW_GAMMA (int)

imagick::PREVIEW_SPIFF (int)

imagick::PREVIEW_DULL (int)

imagick::PREVIEW_GRAYSCALE (int)

imagick::PREVIEW_QUANTIZE (int)

imagick::PREVIEW_DESPECKLE (int)

imagick::PREVIEW_REDUCENOISE (int)

imagick::PREVIEW_ADDNOISE (int)

imagick::PREVIEW_SHARPEN (int)

imagick::PREVIEW_BLUR (int)

imagick::PREVIEW_THRESHOLD (int)

imagick::PREVIEW_EDGEDETECT (int)

imagick::PREVIEW_SPREAD (int)

imagick::PREVIEW_SOLARIZE (int)

imagick::PREVIEW_SHADE (int)

imagick::PREVIEW_RAISE (int)

imagick::PREVIEW_SEGMENT (int)

imagick::PREVIEW_SWIRL (int)

imagick::PREVIEW_IMPLODE (int)

imagick::PREVIEW_WAVE (int)

imagick::PREVIEW_OILPAINT (int)

imagick::PREVIEW_CHARCOALDRAWING (int)

imagick::PREVIEW_JPEG (int)

RENDERINGINTENT_* constants

imagick::RENDERINGINTENT_UNDEFINED (int)

imagick::RENDERINGINTENT_SATURATION (int)

imagick::RENDERINGINTENT_PERCEPTUAL (int)

imagick::RENDERINGINTENT_ABSOLUTE (int)

imagick::RENDERINGINTENT_RELATIVE (int)

INTERLACE_* constants

imagick::INTERLACE_UNDEFINED (int)

imagick::INTERLACE_NO (int)

imagick::INTERLACE_LINE (int)

imagick::INTERLACE_PLANE (int)

imagick::INTERLACE_PARTITION (int)

imagick::INTERLACE_GIF (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.4 or higher.

imagick::INTERLACE_JPEG (int)

imagick::INTERLACE_PNG (int)

FILLRULE_* constants

imagick::FILLRULE_UNDEFINED (int)

imagick::FILLRULE_EVENODD (int)

imagick::FILLRULE_NONZERO (int)

PATHUNITS_* constants

imagick::PATHUNITS_UNDEFINED (int)

imagick::PATHUNITS_USERSPACE (int)

imagick::PATHUNITS_USERSPACEONUSE (int)

imagick::PATHUNITS_OBJECTBOUNDINGBOX (int)

LINECAP_* constants

imagick::LINECAP_UNDEFINED (int)

imagick::LINECAP_BUTT (int)

imagick::LINECAP_ROUND (int)

imagick::LINECAP_SQUARE (int)

LINEJOIN_* constants

imagick::LINEJOIN_UNDEFINED (int)

imagick::LINEJOIN_MITER (int)

imagick::LINEJOIN_ROUND (int)

imagick::LINEJOIN_BEVEL (int)

RESOURCETYPE_* constants

imagick::RESOURCETYPE_UNDEFINED (int)

imagick::RESOURCETYPE_AREA (int)

Set the maximum width * height of an image that can reside in the pixel cache memory.

imagick::RESOURCETYPE_DISK (int)

Set maximum amount of disk space in bytes permitted for use by the pixel cache.

imagick::RESOURCETYPE_FILE (int)

Set maximum number of open pixel cache files.

imagick::RESOURCETYPE_MAP (int)

Set maximum amount of memory map in bytes to allocate for the pixel cache.

imagick::RESOURCETYPE_MEMORY (int)

Set maximum amount of memory in bytes to allocate for the pixel cache from the heap.

imagick::RESOURCETYPE_THREAD (int)

Set maximum parallel threads. Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.7.8 or higher.

LAYERMETHOD_* constants

imagick::LAYERMETHOD_UNDEFINED (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.2.9 or higher.

imagick::LAYERMETHOD_COALESCE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.2.9 or higher.

imagick::LAYERMETHOD_COMPAREANY (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.2.9 or higher.

imagick::LAYERMETHOD_COMPARECLEAR (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.2.9 or higher.

imagick::LAYERMETHOD_COMPAREOVERLAY (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.2.9 or higher.

imagick::LAYERMETHOD_DISPOSE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.2.9 or higher.

imagick::LAYERMETHOD_OPTIMIZE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.2.9 or higher.

imagick::LAYERMETHOD_OPTIMIZEPLUS (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.2.9 or higher.

imagick::LAYERMETHOD_OPTIMIZEIMAGE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.0 or higher.

imagick::LAYERMETHOD_OPTIMIZETRANS (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.0 or higher.

imagick::LAYERMETHOD_REMOVEDUPS (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.0 or higher.

imagick::LAYERMETHOD_REMOVEZERO (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.0 or higher.

imagick::LAYERMETHOD_COMPOSITE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.0 or higher.

imagick::LAYERMETHOD_MERGE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.7 or higher.

imagick::LAYERMETHOD_FLATTEN (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.7 or higher.

imagick::LAYERMETHOD_MOSAIC (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.7 or higher.

ORIENTATION_* constants

imagick::ORIENTATION_UNDEFINED (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.0 or higher.

imagick::ORIENTATION_TOPLEFT (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.0 or higher.

imagick::ORIENTATION_TOPRIGHT (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.0 or higher.

imagick::ORIENTATION_BOTTOMRIGHT (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.0 or higher.

imagick::ORIENTATION_BOTTOMLEFT (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.0 or higher.

imagick::ORIENTATION_LEFTTOP (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.0 or higher.

imagick::ORIENTATION_RIGHTTOP (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.0 or higher.

imagick::ORIENTATION_RIGHTBOTTOM (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.0 or higher.

imagick::ORIENTATION_LEFTBOTTOM (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.0 or higher.

DISTORTION_* constants

imagick::DISTORTION_UNDEFINED (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.6 or higher.

imagick::DISTORTION_AFFINE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.6 or higher.

imagick::DISTORTION_AFFINEPROJECTION (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.6 or higher.

imagick::DISTORTION_ARC (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.6 or higher.

imagick::DISTORTION_BILINEAR (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.6 or higher.

imagick::DISTORTION_PERSPECTIVE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.6 or higher.

imagick::DISTORTION_PERSPECTIVEPROJECTION (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.6 or higher.

imagick::DISTORTION_SCALEROTATETRANSLATE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.6 or higher.

imagick::DISTORTION_POLYNOMIAL (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

imagick::DISTORTION_POLAR (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

imagick::DISTORTION_DEPOLAR (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

imagick::DISTORTION_BARREL (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

imagick::DISTORTION_BARRELINVERSE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

imagick::DISTORTION_SHEPARDS (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

imagick::DISTORTION_SENTINEL (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

ALPHACHANNEL_* constants

imagick::ALPHACHANNEL_ACTIVATE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.8 or higher.

imagick::ALPHACHANNEL_DEACTIVATE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.8 or higher.

imagick::ALPHACHANNEL_RESET (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.8 or higher.

imagick::ALPHACHANNEL_SET (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.8 or higher.

imagick::ALPHACHANNEL_UNDEFINED (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

imagick::ALPHACHANNEL_COPY (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

imagick::ALPHACHANNEL_EXTRACT (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

imagick::ALPHACHANNEL_OPAQUE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

imagick::ALPHACHANNEL_SHAPE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

imagick::ALPHACHANNEL_TRANSPARENT (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

imagick::ALPHACHANNEL_BACKGROUND (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.5.3 or higher.

imagick::ALPHACHANNEL_REMOVE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.7.8 or higher.

imagick::ALPHACHANNEL_ASSOCIATE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.9.0 or higher.

imagick::ALPHACHANNEL_DISSOCIATE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.9.0 or higher.

imagick::ALPHACHANNEL_ON (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 7.0.0 or higher.

imagick::ALPHACHANNEL_OFF (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 7.0.0 or higher.

imagick::ALPHACHANNEL_DISCRETE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 7.0.0 or higher.

SPARSECOLORMETHOD_* constants

imagick::SPARSECOLORMETHOD_UNDEFINED (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

imagick::SPARSECOLORMETHOD_BARYCENTRIC (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

imagick::SPARSECOLORMETHOD_BILINEAR (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

imagick::SPARSECOLORMETHOD_POLYNOMIAL (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

imagick::SPARSECOLORMETHOD_SPEPARDS (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

imagick::SPARSECOLORMETHOD_VORONOI (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

FUNCTION_* constants

imagick::FUNCTION_UNDEFINED (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.9 or higher.

imagick::FUNCTION_POLYNOMIAL (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.9 or higher.

imagick::FUNCTION_SINUSOID (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.9 or higher.

INTERPOLATE_* constants

imagick::INTERPOLATE_UNDEFINED (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.2 or higher.

imagick::INTERPOLATE_AVERAGE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.2 or higher.

imagick::INTERPOLATE_BICUBIC (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.2 or higher.

imagick::INTERPOLATE_BILINEAR (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.2 or higher.

imagick::INTERPOLATE_FILTER (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.2 or higher.

imagick::INTERPOLATE_INTEGER (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.2 or higher.

imagick::INTERPOLATE_MESH (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.2 or higher.

imagick::INTERPOLATE_NEARESTNEIGHBOR (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.2 or higher.

imagick::INTERPOLATE_SPLINE (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.4 or higher.

DITHERMETHOD_* constants

imagick::DITHERMETHOD_UNDEFINED (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

imagick::DITHERMETHOD_NO (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

imagick::DITHERMETHOD_RIEMERSMA (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

imagick::DITHERMETHOD_FLOYDSTEINBERG (int)

Questa costante è disponibile se Imagick è stato compilato con ImageMagick versione 6.4.6 or higher.

add a note

User Contributed Notes 3 notes

up
2
ferenczi dot krisztian at gmail dot com
8 years ago
The `COLOR_OPACITY` doesn't exist if you are using ImageMagick lib 7 or newer version!

Here is the c source code:

#if MagickLibVersion < 0x700
    IMAGICK_REGISTER_CONST_LONG("COLOR_OPACITY", PHP_IMAGICK_COLOR_OPACITY);
#endif

There isn't any information about it anywhere (or I didn't find it)! So, if you want to use it, use the 6 version of lib! You can see the current installed version of lib with this command:

$ identify -version
up
0
aschmidt at anamera dot net
1 year ago
Documentation seems to be missing an enumeration of the int values that getColorspace will return.

Here the int values of PHP 8.4.10:

Imagick::COLORSPACE_UNDEFINED    0
Imagick::COLORSPACE_CMY    1
Imagick::COLORSPACE_CMYK    2
Imagick::COLORSPACE_GRAY    3
Imagick::COLORSPACE_HSB    6
Imagick::COLORSPACE_HSL    8
Imagick::COLORSPACE_HWB    10
Imagick::COLORSPACE_LOG    15
Imagick::COLORSPACE_OHTA    18
Imagick::COLORSPACE_RGB    21
Imagick::COLORSPACE_SRGB    23
Imagick::COLORSPACE_TRANSPARENT    24
Imagick::COLORSPACE_XYZ    26
Imagick::COLORSPACE_YCBCR    27
Imagick::COLORSPACE_YCC    28
Imagick::COLORSPACE_YIQ    30
Imagick::COLORSPACE_YPBPR    31
Imagick::COLORSPACE_YUV    32

Undefined are:
Imagick::COLORSPACE_LAB
Imagick::COLORSPACE_REC601LUMA
Imagick::COLORSPACE_REC709LUMA
up
0
guy dot paddock at redbottledesign dot com
9 years ago
I believe the description for imagick::COMPOSITE_MINUS is incorrect. It states:

"Subtracts the source from the target"

But according to ImageMagick's documentation:

"The original method name 'Minus' is a synonym for 'Minus_Dst' meaning 'minus the destination'"

And defines "Minus_Dst" as:
"Src - Dest"

So the description of "imagick::COMPOSITE_MINUS" should be "Subtracts the target from the source"
To Top