It’s perhaps just a warning… php-gd sometime is enough… is related to php dependencies of the package, some time there is conflicts between php$PHP_VERSION-imagick… Now wordpress use php8.4, perhaps is the reason is not added here, but php8.4-gd should works efficiently.