用PHP获取photoshop写入图片的文字信息
程序员文章站
2022-05-07 14:51:13
...
$image_info = array();
$size = getimagesize('图片文件.jpg', $info);
if(isset($info['APP13']))
{
$iptc = iptcparse($info['APP13']);
foreach (array_keys($iptc) as $s)
{
$c = count ($iptc[$s]);
for ($i=0; $i
{
@$image_info[$s] .= $iptc[$s][$i];
}
}
}
print_r($image_info);
AD:真正免费,域名+虚机+企业邮箱=0元