PHP get Photoshop to write picture text information method
Some photographers like to put the title of the picture, content, keywords and so on Photoshop directly into the picture file inside. It can be read with the following code.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
$image _info = Array (); $size = getimagesize (' picture file. jpg ', $info); if (Isset ($info [' APP13 '])) { $IPTC = Iptcparse ($info [' APP13 ']); foreach (Array_keys ($IPTC) as $s) { $c = count ($IPTC [$s]); for ($i =0; $i < $c; $i + +) { @ $image _info[$s]. = $IPTC [$s] [$i]; } } } Print_r ($image _info); |
http://www.bkjia.com/PHPjc/977159.html www.bkjia.com true http://www.bkjia.com/PHPjc/977159.html techarticle php gets Photoshop to write image text information some photographers like to put the title of the picture, content, keywords and so on Photoshop directly into the picture file inside. Use the following code to ...