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?".
As you can see, the shadow adds the black area, what I'd like it to do is just create the shadow and stop at that bg images canvas size.
Also, when adding a second image and moving it, is there a way to not resize the image, but allow the image to move semi out of bounds? Crop isn't really a valid option for me.
You need to expand the canvas to have a shadow. You can pre-crop or resize the image by the amount of size change due to the shadow, so the result is the same size as your original
Perhaps I misunderstand what you are trying to accomplish? If so, please explain further.
As sibgo said you can not do that. You can either resize the image before adding the shadow or after.
The black area is caused as jpg does not support transparency. To stay as a jpg you would neede to add another background below the shadow the colour of your page and then save as a jpg.
How are you running the command? Your syntax is bash. Do you use Cygwin?
Anyhow, the problem is simply that you ask for a shadow that will extend beyond the background image, so the result is larger. The cure is to make a smaller shadow, or crop, or use "-layers flatten" instead of "-layers merge".
snibgo wrote:How are you running the command? Your syntax is bash. Do you use Cygwin?
Anyhow, the problem is simply that you ask for a shadow that will extend beyond the background image, so the result is larger. The cure is to make a smaller shadow, or crop, or use "-layers flatten" instead of "-layers merge".
Thank you snibgo.
Yes, I'm using Mintty. Also, "flatten" did the trick. I'll have to look up what the difference of flatten and merge is.