Wenn GD Bild ist
//Starting with PHP 8.0, get_resource_type with a GD image argument, will throw a Fatal Error:
function is_gd_image($var) : bool {
return (gettype($var) == "object" && get_class($var) == "GdImage");
}
Andrew Lautenbach