IPTC in Adobe Illustrator files
Posted: Fri Jan 14, 2011 8:33 pm
I know you can injct IPTC data into Adobe Illustrator vector files using applecript. But how can I read/write it with PHP?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
///////read meta keyword
function output_iptc_data($image_path ) {
$thiz = "";
$size = getimagesize ( $image_path, $info);
if(is_array($info)) {
$iptc = iptcparse($info["APP13"]);
foreach (array_keys($iptc) as $s) ; {
$c = count ($iptc[$s]);
for ($i=0; $i <$c; $i++)
{
$thiz .= $iptc[$s][$i].',';
}}}
return $thiz;
}
////remove ext
function RemoveExtension($filename) {
$file = substr($filename, 0,strrpos($filename,'.'));
return $file;
}