&reftitle.constants; &extension.constants;

`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_AVIF` (`int`)

- &gd.constants.types;

  (Available as of PHP 8.1.0)

`IMG_BMP` (`int`)

- &gd.constants.types;

`IMG_GIF` (`int`)

- &gd.constants.types;

`IMG_JPG` (`int`)

- &gd.constants.types;

`IMG_JPEG` (`int`)

- &gd.constants.types;

  This constant has the same value as `IMG_JPG`

`IMG_PNG` (`int`)

- &gd.constants.types;

`IMG_WBMP` (`int`)

- &gd.constants.types;

`IMG_XPM` (`int`)

- &gd.constants.types;

`IMG_WEBP` (`int`)

- &gd.constants.types;

  (Available as of PHP 7.0.10)

`IMG_WEBP_LOSSLESS` (`int`)

- (Available as of PHP 8.1.0)

`IMG_COLOR_TILED` (`int`)

- &gd.constants.color;

`IMG_COLOR_STYLED` (`int`)

- &gd.constants.color;

`IMG_COLOR_BRUSHED` (`int`)

- &gd.constants.color;

`IMG_COLOR_STYLEDBRUSHED` (`int`)

- &gd.constants.color;

`IMG_COLOR_TRANSPARENT` (`int`)

- &gd.constants.color;

`IMG_AFFINE_TRANSLATE` (`int`)

- &gd.constants.affine;

`IMG_AFFINE_SCALE` (`int`)

- &gd.constants.affine;

`IMG_AFFINE_ROTATE` (`int`)

- &gd.constants.affine;

`IMG_AFFINE_SHEAR_HORIZONTAL` (`int`)

- &gd.constants.affine;

`IMG_AFFINE_SHEAR_VERTICAL` (`int`)

- &gd.constants.affine;

`IMG_ARC_ROUNDED` (`int`)

- &gd.constants.arc;

  This constant has the same value as `IMG_ARC_PIE`

`IMG_ARC_PIE` (`int`)

- &gd.constants.arc;

`IMG_ARC_CHORD` (`int`)

- &gd.constants.arc;

`IMG_ARC_NOFILL` (`int`)

- &gd.constants.arc;

`IMG_ARC_EDGED` (`int`)

- &gd.constants.arc;

`IMG_GD2_RAW` (`int`)

- &gd.constants.gd2;

`IMG_GD2_COMPRESSED` (`int`)

- &gd.constants.gd2;

`IMG_EFFECT_REPLACE` (`int`)

- &gd.constants.effect;

`IMG_EFFECT_ALPHABLEND` (`int`)

- &gd.constants.effect;

`IMG_EFFECT_NORMAL` (`int`)

- &gd.constants.effect;

`IMG_EFFECT_OVERLAY` (`int`)

- &gd.constants.effect;

`IMG_EFFECT_MULTIPLY` (`int`)

- &gd.constants.effect;

`IMG_FILTER_NEGATE` (`int`)

- &gd.constants.filter;

`IMG_FILTER_GRAYSCALE` (`int`)

- &gd.constants.filter;

`IMG_FILTER_BRIGHTNESS` (`int`)

- &gd.constants.filter;

`IMG_FILTER_CONTRAST` (`int`)

- &gd.constants.filter;

`IMG_FILTER_COLORIZE` (`int`)

- &gd.constants.filter;

`IMG_FILTER_EDGEDETECT` (`int`)

- &gd.constants.filter;

`IMG_FILTER_GAUSSIAN_BLUR` (`int`)

- &gd.constants.filter;

`IMG_FILTER_SELECTIVE_BLUR` (`int`)

- &gd.constants.filter;

`IMG_FILTER_EMBOSS` (`int`)

- &gd.constants.filter;

`IMG_FILTER_MEAN_REMOVAL` (`int`)

- &gd.constants.filter;

`IMG_FILTER_SMOOTH` (`int`)

- &gd.constants.filter;

`IMG_FILTER_PIXELATE` (`int`)

- &gd.constants.filter;

`IMG_FILTER_SCATTER` (`int`)

- &gd.constants.filter;

  (Available as of PHP 7.4.0)

`IMAGETYPE_GIF` (`int`)

- &gd.constants.type;

`IMAGETYPE_JPEG` (`int`)

- &gd.constants.type;

`IMAGETYPE_JPEG2000` (`int`)

- &gd.constants.type;

`IMAGETYPE_PNG` (`int`)

- &gd.constants.type;

`IMAGETYPE_SWF` (`int`)

- &gd.constants.type;

`IMAGETYPE_PSD` (`int`)

- &gd.constants.type;

`IMAGETYPE_BMP` (`int`)

- &gd.constants.type;

`IMAGETYPE_WBMP` (`int`)

- &gd.constants.type;

`IMAGETYPE_XBM` (`int`)

- &gd.constants.type;

`IMAGETYPE_TIFF_II` (`int`)

- &gd.constants.type;

`IMAGETYPE_TIFF_MM` (`int`)

- &gd.constants.type;

`IMAGETYPE_IFF` (`int`)

- &gd.constants.type;

`IMAGETYPE_JB2` (`int`)

- &gd.constants.type;

`IMAGETYPE_JPC` (`int`)

- &gd.constants.type;

`IMAGETYPE_JP2` (`int`)

- &gd.constants.type;

`IMAGETYPE_JPX` (`int`)

- &gd.constants.type;

`IMAGETYPE_SWC` (`int`)

- &gd.constants.type;

`IMAGETYPE_ICO` (`int`)

- &gd.constants.type;

`IMAGETYPE_WEBP` (`int`)

- &gd.constants.type;

  (Available as of PHP 7.1.0)

`IMAGETYPE_AVIF` (`int`)

- &gd.constants.type;

  (Available as of PHP 8.1.0)

`PNG_NO_FILTER` (`int`)

- &gd.constants.png-filter;

`PNG_FILTER_NONE` (`int`)

- &gd.constants.png-filter;

`PNG_FILTER_SUB` (`int`)

- &gd.constants.png-filter;

`PNG_FILTER_UP` (`int`)

- &gd.constants.png-filter;

`PNG_FILTER_AVG` (`int`)

- &gd.constants.png-filter;

`PNG_FILTER_PAETH` (`int`)

- &gd.constants.png-filter;

`PNG_ALL_FILTERS` (`int`)

- &gd.constants.png-filter;

`IMG_FLIP_VERTICAL` (`int`)

- &gd.constants.flip;

`IMG_FLIP_HORIZONTAL` (`int`)

- &gd.constants.flip;

`IMG_FLIP_BOTH` (`int`)

- &gd.constants.flip;

`IMG_BELL` (`int`)

- &gd.constants.interpolation;

`IMG_BESSEL` (`int`)

- &gd.constants.interpolation;

`IMG_BILINEAR_FIXED` (`int`)

- &gd.constants.interpolation;

`IMG_BICUBIC` (`int`)

- &gd.constants.interpolation;

`IMG_BICUBIC_FIXED` (`int`)

- &gd.constants.interpolation;

`IMG_BLACKMAN` (`int`)

- &gd.constants.interpolation;

`IMG_BOX` (`int`)

- &gd.constants.interpolation;

`IMG_BSPLINE` (`int`)

- &gd.constants.interpolation;

`IMG_CATMULLROM` (`int`)

- &gd.constants.interpolation;

`IMG_GAUSSIAN` (`int`)

- &gd.constants.interpolation;

`IMG_GENERALIZED_CUBIC` (`int`)

- &gd.constants.interpolation;

`IMG_HERMITE` (`int`)

- &gd.constants.interpolation;

`IMG_HAMMING` (`int`)

- &gd.constants.interpolation;

`IMG_HANNING` (`int`)

- &gd.constants.interpolation;

`IMG_MITCHELL` (`int`)

- &gd.constants.interpolation;

`IMG_POWER` (`int`)

- &gd.constants.interpolation;

`IMG_QUADRATIC` (`int`)

- &gd.constants.interpolation;

`IMG_SINC` (`int`)

- &gd.constants.interpolation;

`IMG_NEAREST_NEIGHBOUR` (`int`)

- &gd.constants.interpolation;

`IMG_WEIGHTED4` (`int`)

- &gd.constants.interpolation;

`IMG_TRIANGLE` (`int`)

- &gd.constants.interpolation;