note 95759 added to function.imagick-compositeimage

From: Date: Wed, 20 Jan 2010 16:30:57 +0000
Subject: note 95759 added to function.imagick-compositeimage
Groups: php.notes 
Request: Send a blank email to php-notes+get-165139@lists.php.net to get a copy of this message
You might need to set the colorspace the same when composing two images over each other <? //Creating two Imagick object $first = new Imagick('first.jpg'); $second = new Imagick('second.jpg'); // Set the colorspace to the same value $first->setImageColorspace($second->getImageColorspace() ); //Second image is put on top of the first $first->compositeImage($second, $second->getImageCompose(), 5, 5); //new image is saved as final.jpg $first->writeImage('final.jpg'); ---- Server IP: 91.199.167.223 Probable Submitter: 62.177.179.146 ---- Manual Page -- http://www.php.net/manual/en/function.imagick-compositeimage.php Edit -- https://master.php.net/note/edit/95759 Del: integrated -- https://master.php.net/note/delete/95759/integrated Del: useless -- https://master.php.net/note/delete/95759/useless Del: bad code -- https://master.php.net/note/delete/95759/bad+code Del: spam -- https://master.php.net/note/delete/95759/spam Del: non-english -- https://master.php.net/note/delete/95759/non-english Del: in docs -- https://master.php.net/note/delete/95759/in+docs Del: other reasons-- https://master.php.net/note/delete/95759 Reject -- https://master.php.net/note/reject/95759 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#165139) next »