← All docs

iptcembed()

Embeds an IPTC block into a JPEG file.

iptcembed()

function iptcembed(string $iptcdata, string $jpeg_file_name, int $spool = 0): mixed

Embeds an IPTC block into a JPEG file.

Parameters:

  • $iptcdata (string)
  • $jpeg_file_name (string)
  • $spool (int), default 0, optional

Returns: mixed

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 iptcembed is implemented in the compiler, see the internals page.