phalcon/cphalcon · error · Phalcon\Image\Exceptions\VersionMismatch

Phalcon\Image\Adapter\GD requires GD version '2.0.1' or grea

Error message

Phalcon\Image\Adapter\GD requires GD version '2.0.1' or greater, you have {version}

What it means

Error "Phalcon\Image\Adapter\GD requires GD version '2.0.1' or greater, you have {version}" thrown in phalcon/cphalcon.

Source

Thrown at phalcon/Image/Adapter/Gd.zep:924

            0,
            width,
            height
        );
    }

    /**
     * Checks the installed version of GD
     *
     * @throws Exception
     */
    private function check() -> void
    {
        var version;

        let version = this->getVersion();

        if (true !== version_compare(version, "2.0.1", ">=")) {
            throw new VersionMismatch(version);
        }
    }
}

View on GitHub (pinned to b7419de9cd)

When it happens

Trigger: Thrown at phalcon/Image/Adapter/Gd.zep:924 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of phalcon/cphalcon@b7419de9cd (2026-08-21). Data as JSON: /api/errors/22a7b53b5d49765d. Report an issue: GitHub.