I run composer require ext-gd and git push heroku master it did work.
I tried add "gd": "*" to composer.json and perform composer update but when push to Heroku meet error with Class 'Symfony\Component\HttpFoundation\InputBag' not found. I think it's not only update ext-gd with composer update