PHP 8.1.0 RC 2 available for testing

Vordefinierte Konstanten

Folgende Konstanten werden von dieser Erweiterung definiert und stehen nur zur Verfügung, wenn die Erweiterung entweder statisch in PHP kompiliert oder dynamisch zur Laufzeit geladen wurde.

GD_VERSION (string)
The GD version PHP was compiled against.
GD_MAJOR_VERSION (int)
The GD major version PHP was compiled against.
GD_MINOR_VERSION (int)
The GD minor version PHP was compiled against.
GD_RELEASE_VERSION (int)
The GD release version PHP was compiled against.
GD_EXTRA_VERSION (string)
The GD "extra" version (beta/rc..) PHP was compiled against.
GD_BUNDLED (int)
When the bundled version of GD is used this is 1 otherwise its set to 0.
IMG_BMP (int)
Wird als Rückgabewert von imagetypes() verwendet
IMG_GIF (int)
Wird als Rückgabewert von imagetypes() verwendet
IMG_JPG (int)
Wird als Rückgabewert von imagetypes() verwendet
IMG_JPEG (int)
Wird als Rückgabewert von imagetypes() verwendet

Hinweis:

This constant has the same value as IMG_JPG

IMG_PNG (int)
Wird als Rückgabewert von imagetypes() verwendet
IMG_WBMP (int)
Wird als Rückgabewert von imagetypes() verwendet
IMG_XPM (int)
Wird als Rückgabewert von imagetypes() verwendet
IMG_WEBP (int)
Wird als Rückgabewert von imagetypes() verwendet Available as of PHP 7.0.10.
IMG_COLOR_TILED (int)
Eine spezielle Farboption, die anstelle einer Farbe verwendet werden kann, die mit imagecolorallocate() oder imagecolorallocatealpha() zugewiesen wird.
IMG_COLOR_STYLED (int)
Eine spezielle Farboption, die anstelle einer Farbe verwendet werden kann, die mit imagecolorallocate() oder imagecolorallocatealpha() zugewiesen wird.
IMG_COLOR_BRUSHED (int)
Eine spezielle Farboption, die anstelle einer Farbe verwendet werden kann, die mit imagecolorallocate() oder imagecolorallocatealpha() zugewiesen wird.
IMG_COLOR_STYLEDBRUSHED (int)
Eine spezielle Farboption, die anstelle einer Farbe verwendet werden kann, die mit imagecolorallocate() oder imagecolorallocatealpha() zugewiesen wird.
IMG_COLOR_TRANSPARENT (int)
Eine spezielle Farboption, die anstelle einer Farbe verwendet werden kann, die mit imagecolorallocate() oder imagecolorallocatealpha() zugewiesen wird.
IMG_AFFINE_TRANSLATE (int)
Eine Konstante vom Typ affine Transformation, die von der Funktion imageaffinematrixget() verwendet wird.
IMG_AFFINE_SCALE (int)
Eine Konstante vom Typ affine Transformation, die von der Funktion imageaffinematrixget() verwendet wird.
IMG_AFFINE_ROTATE (int)
Eine Konstante vom Typ affine Transformation, die von der Funktion imageaffinematrixget() verwendet wird.
IMG_AFFINE_SHEAR_HORIZONTAL (int)
Eine Konstante vom Typ affine Transformation, die von der Funktion imageaffinematrixget() verwendet wird.
IMG_AFFINE_SHEAR_VERTICAL (int)
Eine Konstante vom Typ affine Transformation, die von der Funktion imageaffinematrixget() verwendet wird.
IMG_ARC_ROUNDED (int)
Eine Stilkonstante, die von der Funktion imagefilledarc() verwendet wird.

Hinweis:

This constant has the same value as IMG_ARC_PIE

IMG_ARC_PIE (int)
Eine Stilkonstante, die von der Funktion imagefilledarc() verwendet wird.
IMG_ARC_CHORD (int)
Eine Stilkonstante, die von der Funktion imagefilledarc() verwendet wird.
IMG_ARC_NOFILL (int)
Eine Stilkonstante, die von der Funktion imagefilledarc() verwendet wird.
IMG_ARC_EDGED (int)
Eine Stilkonstante, die von der Funktion imagefilledarc() verwendet wird.
IMG_GD2_RAW (int)
Eine Typkonstante, die von der Funktion imagegd2() verwendet wird.
IMG_GD2_COMPRESSED (int)
Eine Typkonstante, die von der Funktion imagegd2() verwendet wird.
IMG_EFFECT_REPLACE (int)
Alpha blending effect used by the imagelayereffect() function.
IMG_EFFECT_ALPHABLEND (int)
Alpha blending effect used by the imagelayereffect() function.
IMG_EFFECT_NORMAL (int)
Alpha blending effect used by the imagelayereffect() function.
IMG_EFFECT_OVERLAY (int)
Alpha blending effect used by the imagelayereffect() function.
IMG_EFFECT_MULTIPLY (int)
Alpha blending effect used by the imagelayereffect() function.
IMG_FILTER_NEGATE (int)
Special GD filter used by the imagefilter() function.
IMG_FILTER_GRAYSCALE (int)
Special GD filter used by the imagefilter() function.
IMG_FILTER_BRIGHTNESS (int)
Special GD filter used by the imagefilter() function.
IMG_FILTER_CONTRAST (int)
Special GD filter used by the imagefilter() function.
IMG_FILTER_COLORIZE (int)
Special GD filter used by the imagefilter() function.
IMG_FILTER_EDGEDETECT (int)
Special GD filter used by the imagefilter() function.
IMG_FILTER_GAUSSIAN_BLUR (int)
Special GD filter used by the imagefilter() function.
IMG_FILTER_SELECTIVE_BLUR (int)
Special GD filter used by the imagefilter() function.
IMG_FILTER_EMBOSS (int)
Special GD filter used by the imagefilter() function.
IMG_FILTER_MEAN_REMOVAL (int)
Special GD filter used by the imagefilter() function.
IMG_FILTER_SMOOTH (int)
Special GD filter used by the imagefilter() function.
IMG_FILTER_PIXELATE (int)
Special GD filter used by the imagefilter() function.
IMG_FILTER_SCATTER (int)
Special GD filter used by the imagefilter() function. (Available as of PHP 7.4.0)
IMAGETYPE_GIF (int)
Image type constant used by the image_type_to_mime_type() and image_type_to_extension() functions.
IMAGETYPE_JPEG (int)
Image type constant used by the image_type_to_mime_type() and image_type_to_extension() functions.
IMAGETYPE_JPEG2000 (int)
Image type constant used by the image_type_to_mime_type() and image_type_to_extension() functions.
IMAGETYPE_PNG (int)
Image type constant used by the image_type_to_mime_type() and image_type_to_extension() functions.
IMAGETYPE_SWF (int)
Image type constant used by the image_type_to_mime_type() and image_type_to_extension() functions.
IMAGETYPE_PSD (int)
Image type constant used by the image_type_to_mime_type() and image_type_to_extension() functions.
IMAGETYPE_BMP (int)
Image type constant used by the image_type_to_mime_type() and image_type_to_extension() functions.
IMAGETYPE_WBMP (int)
Image type constant used by the image_type_to_mime_type() and image_type_to_extension() functions.
IMAGETYPE_XBM (int)
Image type constant used by the image_type_to_mime_type() and image_type_to_extension() functions.
IMAGETYPE_TIFF_II (int)
Image type constant used by the image_type_to_mime_type() and image_type_to_extension() functions.
IMAGETYPE_TIFF_MM (int)
Image type constant used by the image_type_to_mime_type() and image_type_to_extension() functions.
IMAGETYPE_IFF (int)
Image type constant used by the image_type_to_mime_type() and image_type_to_extension() functions.
IMAGETYPE_JB2 (int)
Image type constant used by the image_type_to_mime_type() and image_type_to_extension() functions.
IMAGETYPE_JPC (int)
Image type constant used by the image_type_to_mime_type() and image_type_to_extension() functions.
IMAGETYPE_JP2 (int)
Image type constant used by the image_type_to_mime_type() and image_type_to_extension() functions.
IMAGETYPE_JPX (int)
Image type constant used by the image_type_to_mime_type() and image_type_to_extension() functions.
IMAGETYPE_SWC (int)
Image type constant used by the image_type_to_mime_type() and image_type_to_extension() functions.
IMAGETYPE_ICO (int)
Image type constant used by the image_type_to_mime_type() and image_type_to_extension() functions.
IMAGETYPE_WEBP (int)
Image type constant used by the image_type_to_mime_type() and image_type_to_extension() functions. (Available as of PHP 7.1.0)
PNG_NO_FILTER (int)
A special PNG filter, used by the imagepng() function.
PNG_FILTER_NONE (int)
A special PNG filter, used by the imagepng() function.
PNG_FILTER_SUB (int)
A special PNG filter, used by the imagepng() function.
PNG_FILTER_UP (int)
A special PNG filter, used by the imagepng() function.
PNG_FILTER_AVG (int)
A special PNG filter, used by the imagepng() function.
PNG_FILTER_PAETH (int)
A special PNG filter, used by the imagepng() function.
PNG_ALL_FILTERS (int)
A special PNG filter, used by the imagepng() function.
IMG_FLIP_VERTICAL (int)
Used together with imageflip(), available as of PHP 5.5.0.
IMG_FLIP_HORIZONTAL (int)
Used together with imageflip(), available as of PHP 5.5.0.
IMG_FLIP_BOTH (int)
Used together with imageflip(), available as of PHP 5.5.0.
IMG_BELL (int)
Used together with imagesetinterpolation(), available as of PHP 5.5.0.
IMG_BESSEL (int)
Used together with imagesetinterpolation(), available as of PHP 5.5.0.
IMG_BILINEAR_FIXED (int)
Used together with imagesetinterpolation(), available as of PHP 5.5.0.
IMG_BICUBIC (int)
Used together with imagesetinterpolation(), available as of PHP 5.5.0.
IMG_BICUBIC_FIXED (int)
Used together with imagesetinterpolation(), available as of PHP 5.5.0.
IMG_BLACKMAN (int)
Used together with imagesetinterpolation(), available as of PHP 5.5.0.
IMG_BOX (int)
Used together with imagesetinterpolation(), available as of PHP 5.5.0.
IMG_BSPLINE (int)
Used together with imagesetinterpolation(), available as of PHP 5.5.0.
IMG_CATMULLROM (int)
Used together with imagesetinterpolation(), available as of PHP 5.5.0.
IMG_GAUSSIAN (int)
Used together with imagesetinterpolation(), available as of PHP 5.5.0.
IMG_GENERALIZED_CUBIC (int)
Used together with imagesetinterpolation(), available as of PHP 5.5.0.
IMG_HERMITE (int)
Used together with imagesetinterpolation(), available as of PHP 5.5.0.
IMG_HAMMING (int)
Used together with imagesetinterpolation(), available as of PHP 5.5.0.
IMG_HANNING (int)
Used together with imagesetinterpolation(), available as of PHP 5.5.0.
IMG_MITCHELL (int)
Used together with imagesetinterpolation(), available as of PHP 5.5.0.
IMG_POWER (int)
Used together with imagesetinterpolation(), available as of PHP 5.5.0.
IMG_QUADRATIC (int)
Used together with imagesetinterpolation(), available as of PHP 5.5.0.
IMG_SINC (int)
Used together with imagesetinterpolation(), available as of PHP 5.5.0.
IMG_NEAREST_NEIGHBOUR (int)
Used together with imagesetinterpolation(), available as of PHP 5.5.0.
IMG_WEIGHTED4 (int)
Used together with imagesetinterpolation(), available as of PHP 5.5.0.
IMG_TRIANGLE (int)
Used together with imagesetinterpolation(), available as of PHP 5.5.0.
add a note add a note

User Contributed Notes 1 note

up
9
webmaster at alexventure dot com
10 years ago
In case anyone is wondering what these filters are for, have a look at the W3C's specification:

http://www.w3.org/TR/PNG-Filters.html
To Top