Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Get image width
<?php imagesx(GdImage $image): int
<?php     public static function castGd($gd, array $a, Stub $stub, bool $isNested)

    {

        $a['size'] = imagesx($gd).'x'.imagesy($gd);

        $a['trueColor'] = imageistruecolor($gd);



        return $a;