iptc keywords
Moderator: General Moderators
IPTC in Adobe Illustrator files
I know you can injct IPTC data into Adobe Illustrator vector files using applecript. But how can I read/write it with PHP?
iptc keywords
I have a bunch of adobe illustrator files & pdfs that contain metadata iptc keywords .
I cannot seem to get this data to extract using php exif_read_data.
ive tried many options including this one:
but have been unsuccessful.
most of these have been injected using adobe bridge.
Reason: need to convert to thumbs but want to retain the keywords
any help would be appreciated
I cannot seem to get this data to extract using php exif_read_data.
ive tried many options including this one:
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;
}
most of these have been injected using adobe bridge.
Reason: need to convert to thumbs but want to retain the keywords
any help would be appreciated
Re: IPTC in Adobe Illustrator files
fopen() fread() and fseek()
Re: iptc keywords
Re: iptc keywords
Adobe illustrator files typically end in .ai
exif_read_data operates on a jpeg or tiff.
exif_read_data operates on a jpeg or tiff.