Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<imagegetclipimagegif>
^GD and Image FunctionsLast updated: Mon, 26 Oct 2026

imagegetinterpolation

(PHP 8)

imagegetinterpolation — Get the interpolation method

Description

function imagegetinterpolation(GdImage $image): int

Gets the currently set interpolation method of the image.

Parameters

image

A GdImage object, returned by one of the image creation functions, such as imagecreatetruecolor().

Return Values

Returns the interpolation method.

Changelog

Version Description
8.0.0 image expects a GdImage instance now; previously, a valid gd resource was expected.

See Also


<imagegetclipimagegif>
^GD and Image FunctionsLast updated: Mon, 26 Oct 2026