PHP gets a way for Photoshop to write text messages to pictures,
This article explains how PHP gets Photoshop to write image text messages. Share to everyone for your reference. The specific analysis is as follows:
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.
$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);
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/976694.html www.bkjia.com true http://www.bkjia.com/PHPjc/976694.html techarticle PHP obtains photoshop to write the picture text information method, this article explains the PHP obtains the Photoshop writes the picture text information the method. Share to everyone for your reference. The specific analysis is as follows: ...