I think it's pretty simple. To get iptc data from an old image, you just need to use the getimagesize and iptcparse functions.
On php.net you found this example for this
<?php
$size = getimagesize('./test.jpg', $info);
if(isset($info['APP13']))
{
$iptc = iptcparse($info['APP13']);
var_dump($iptc);
}
?>
Combine this sample with the iptcembed method and you have everything you need
source
share