Problem creating overlaying photos

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Problem creating overlaying photos

Post by Bonzo »

Your white triangles are the parts left when the image is rotated - basicly the image is still square/rectangular.

Try this setting the background to none = transparent

Code: Select all

composite -geometry 90x90+40+40 -background none -rotate 5 ordinaryphoto.jpg overlaying.png overlaying.png
I have an example of it here: http://www.rubblewebs.co.uk/imagemagick ... ground.jpg
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Problem creating overlaying photos

Post by Bonzo »

Can you post your code you are using.

Your version of ImageMagick may also help:

Code: Select all

<?php
echo "<pre>";
system("convert -version"); 
echo "</pre>";
?>
Is all the code on one line especialy the long line with the -composite in ?
Post Reply