What are the differences between the image of GD and GD2?

Reading the documentation for imagegd2 () and imagegd () , I noticed that the functions are described accordingly:

  • Output GD2 image to browser or file
  • Output GD image to browser or file

What is a GD2 and a GD image? What is the difference between these types of images?

+4
source share
2 answers

gd is the old c library, gd2 is updated. php uses gd2.

+4
source

In some version of GD, only PNG is generated, but the latest version can transfer GIFs and PNGs. Soon GD 1 will no longer be supported in the next version of PHP.

+1
source

Source: https://habr.com/ru/post/1312725/


All Articles