svn: /phpdoc/en/trunk/reference/image/functions/ iptcembed.xml

From: Date: Sat, 18 Jul 2015 20:03:52 +0000
Subject: svn: /phpdoc/en/trunk/reference/image/functions/ iptcembed.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-13471@lists.php.net to get a copy of this message
cmb Sat, 18 Jul 2015 20:03:52 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=337191 Log: fixed example which assumed that calling iptcembed() would fail if there's already an APP13 marker, what is not true as of PHP 4.3.0 at least Changed paths: U phpdoc/en/trunk/reference/image/functions/iptcembed.xml Modified: phpdoc/en/trunk/reference/image/functions/iptcembed.xml =================================================================== --- phpdoc/en/trunk/reference/image/functions/iptcembed.xml 2015-07-18 19:45:03 UTC (rev 337190) +++ phpdoc/en/trunk/reference/image/functions/iptcembed.xml 2015-07-18 20:03:52 UTC (rev 337191) @@ -91,15 +91,6 @@ // Path to jpeg file $path = './phplogo.jpg'; -// We need to check if there is any IPTC data in the jpeg image. If there is, then -// bail out because we cannot embed any image that already has some IPTC data! -$image = getimagesize($path, $info); - -if(isset($info['APP13'])) -{ - die('Error: IPTC data found in source image, cannot continue'); -} - // Set the IPTC tags $iptc = array( '2#120' => 'Test image',

« previous php.doc.cvs (#13471) next »