GD library is needed to execute image functions. Post navigation How can PHP and Javascript interact? What is the use of the function ‘imagetypes()’?