I am getting this error when I run on my mac with localhost.
Either GD PHP extension with FreeType support or ImageMagick PHP extension with PNG support
As suggested in the comments.
The contact form contains a .png picture in the form of a captcha image. The captcha image is used there to prevent spam being send via the contact form.