If you have a file without any IPTC record, you can add a new, empty one by calling iptcembed with an empty string as first argument, like this:
$buffer = iptcembed("",$imagename,0);
$fp = fopen($imagename,"w");
fwrite($fp,$buffer);
fclose($fp);
If you have a file without any IPTC record, you can add a new, empty one by calling iptcembed with an empty string as first argument, like this:
$buffer = iptcembed("",$imagename,0);
$fp = fopen($imagename,"w");
fwrite($fp,$buffer);
fclose($fp);