Note: libgd is need for being able to export png, jpeg and gif files! Of course libgd needs to be compiled with the proper support for the mentioned formats relying on 3rd. party libs like libpng and libjpeg.