Composite errors on blank image
Posted: 2010-09-20T22:54:16-07:00
First of all, let me say that switching to ImageMagick from JAI was one of the smartest things I've ever done. JAI is great. But, ImageMagick is stellar.
I've run into a problem though. We came across a need to combine two images. We have a placeholder that an image needs to go in which forces images to a certain size. But, the images we need to put there start really small so when we use IM to scale them, we wind up with an image you can no longer decipher (image is just way too small to start with). So, we want to create a blank image that is the right size and then put our super small image in the center of that blank image so that it does not get interpolated later.
We followed the example from the developer manual with the rose.jpg (composite -gravity center smile.gif rose: rose-over.png). That combined images just great. But, when we create a blank image, it does not. Can someone help me out? When we run this: composite -gravity center smile.gif convas: convas-over.png "Convas" is a blank image one of our developers created for the last test. We can create the blank canvas just fine. We can run the smile and rose example just fine. But, when we try to composite our created blank image with any other image, we get this:
Magick: no decode delegate for this image format `' @ error/constitute.c/ReadImage/532.
Magick: missing an image filename `convas-over.png' @ error/composite.c/CompositeImageCommand/1607.
We have checked and have all delegates. Can someone help me see what is wrong?
Best,
Al
I've run into a problem though. We came across a need to combine two images. We have a placeholder that an image needs to go in which forces images to a certain size. But, the images we need to put there start really small so when we use IM to scale them, we wind up with an image you can no longer decipher (image is just way too small to start with). So, we want to create a blank image that is the right size and then put our super small image in the center of that blank image so that it does not get interpolated later.
We followed the example from the developer manual with the rose.jpg (composite -gravity center smile.gif rose: rose-over.png). That combined images just great. But, when we create a blank image, it does not. Can someone help me out? When we run this: composite -gravity center smile.gif convas: convas-over.png "Convas" is a blank image one of our developers created for the last test. We can create the blank canvas just fine. We can run the smile and rose example just fine. But, when we try to composite our created blank image with any other image, we get this:
Magick: no decode delegate for this image format `' @ error/constitute.c/ReadImage/532.
Magick: missing an image filename `convas-over.png' @ error/composite.c/CompositeImageCommand/1607.
We have checked and have all delegates. Can someone help me see what is wrong?
Best,
Al