I am a total novice at this.
I have added a caption to 3 JPG files, with XNVIEW. If I look at them with XNVIEW, they are all still there.
I am using PHP to try to get at that data, but it is not appearing.
I am looping through a directory, which contains several JPGs including the 3, I have added a 'Caption' to. Only one gives me an APP13 entry and that appears to have come from a Photoshop edit sometime in the past.
I am using the following code.
-----------------------------------------------------------------
function getIPTC_Data( $file ) {
$size = getimagesize ( $file, &$info);
var_dump($info);
echo BN;
if(is_array($info)) {
$iptc = iptcparse($info["APP13"]);
foreach (array_keys($iptc) as $s) {
$c = count ($iptc[$s]);
for ($i=0; $i <$c; $i++)
{
echo $s.' = '.$iptc[$s][$i].'<br>';
}
}
}
}
---------------------------------------------------------
Any help or guidance, would be gratefully appreciated.
Richard
Newbie: IPTC APP13
Ask for help and post your question on how to use XnView Classic.
Moderators: helmut, XnTriq, xnview
Return to “Classic - General Support”
Jump to
- General
- ↳ Info & Forum
- ↳ XnView - FAQ
- ↳ Miscellaneous
- XnView MP
- ↳ MP - Announcements
- ↳ MP - General Support
- ↳ MP - Bug reports
- ↳ New
- ↳ Reproduced - TODO
- ↳ Fixed in next version
- ↳ Retest
- ↳ Postponed
- ↳ Closed/Resolved
- ↳ MP - Suggestions
- ↳ MP - General [Français]
- XnView Classic
- ↳ Classic - General Support
- ↳ Classic - Bug Reports
- ↳ Classic - Suggestions
- ↳ Classic - General [Français]
- XnView Family
- ↳ XnConvert
- ↳ XnResize
- ↳ XnRetro, XnSketch, ...
- ↳ NConvert
- ↳ XnView Shell Extension
- ↳ Android & iOS: XnPhotoFx, XnRetro, XnSketch, ...
- ↳ XnView Pocket
- ↳ GFL SDK
- Contribution
- ↳ Customization
- ↳ Documentation
- ↳ XnView MP - Translation
- ↳ XnView Classic - Translation
- ↳ Testing - Closed/Solved
- ↳ 1.96 Testing - Feedback
- Archive
- ↳ XnView Un*x
- ↳ XnView Mac OS X
- ↳ Classic - Resolved Bugs & Requests
- ↳ MP - Resolved Bugs & Requests
- ↳ MP – Beta Testing
- ↳ New