note 76195 added to function.iptcembed

From: Date: Wed, 04 Jul 2007 16:55:57 +0000
Subject: note 76195 added to function.iptcembed
Groups: php.notes 
Request: Send a blank email to php-notes+get-128227@lists.php.net to get a copy of this message
In Thomas's wonderful code snippet below, the second parameter needs to be changed to "$filename", otherwise the script has no write the file. So the code should read: <?php //This function removes all header data from a JPG function remove_XMP($image_in, $filename) { $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); } ?> ---- Server IP: 64.71.164.2 Probable Submitter: 70.182.241.110 ---- Manual Page -- http://www.php.net/manual/en/function.iptcembed.php Edit -- https://master.php.net/note/edit/76195 Del: integrated -- https://master.php.net/note/delete/76195/integrated Del: useless -- https://master.php.net/note/delete/76195/useless Del: bad code -- https://master.php.net/note/delete/76195/bad+code Del: spam -- https://master.php.net/note/delete/76195/spam Del: non-english -- https://master.php.net/note/delete/76195/non-english Del: in docs -- https://master.php.net/note/delete/76195/in+docs Del: other reasons-- https://master.php.net/note/delete/76195 Reject -- https://master.php.net/note/reject/76195 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128227) next »