← All docs

gd_info()

Returns the GD version and which image formats this build supports.

gd_info()

function gd_info(): array

Returns the GD version and which image formats this build supports.

Parameters: none.

Returns: array

Availability

  • Compiled (AOT): supported through the compiler-injected image prelude.
  • eval() (magician interpreter): not available inside eval’d code.

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how gd_info is implemented in the compiler, see the internals page.