Auto-lowercasing of target image format
gd.Image.save documentation
gd.Image.ptr documentation