note 54435 added to function.iptcembed
| From: | thomas at anakrome dot net | Date: | Mon, 04 Jul 2005 16:02:51 +0000 |
| Subject: | note 54435 added to function.iptcembed | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-91428@lists.php.net to get a copy of this message | ||
here is a small code to remove all header from a jpg file, including IPTC, Exif, XMP...
function remove_XMP($image_in, $image_dest) {
$filename_in = addslashes($image_in);
list($width, $height) = getimagesize($filename_in);
$image_dest = imagecreatetruecolor($width, $height);
$image = imagecreatefromjpeg($filename_in);
imagecopyresampled($image_dest, $image, 0, 0, 0, 0, $width, $height,
$width, $height);
imagejpeg($image_dest, $filename);
}
the problem comes from Photoshop CS cannot read IPTC if XMP is present.
removing XMP and other header _before_ adding IPTC with iptcembed is a good way.
----
Manual Page -- http://www.php.net/manual/en/function.iptcembed.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54435
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54435&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54435&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54435&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54435&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54435&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54435&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54435&report=yes
Search -- http://master.php.net/manage/user-notes.php