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?".
i have a few thousand transparent png product images
which i would need to add a background and an outer glow to. is this possible with ImageMagick and how would the convert command be?
This is what I have
This is what it should be
even better if the background could be filled with a seamless texture from an jpg file..
Marcesh wrote:i have a few thousand transparent png product images...
So why didn't you supply one? Instead, you supply an opaque example that has already been flattened against a chequer background. This means we can't experiment to work out an exact solution.
But an outline solution would be: extract the alpha, and blur. This would give a "glow" mask, but might need tweaking. Composite the original over that. Then flatten against a gray background, or whatever colour or other image you want.
Please also state the version of IM you use, and platform.
EDIT: My commands include "+write g.png". They are for debugging (so you can sse just the "glow"). They can be removed when you are happy with the commands.
That gives a 42% gray background. If instead you want an image as background then, and it is not about being in that ... If you see below for the info because when they convert it, it might look different and some might try this code and it works successfully.
EDIT: My commands include "+write g.png". They are for debugging (so you can sse just the "glow"). They can be removed when you are happy with the commands.
This is awesome work. Looked up your page particularly your canny edge detection. Really robust code there but get's the job done. Will you be expanding on it and polish it up even more, if that's even possible? Great stuff though.
Last edited by paleshadow123 on 2018-05-15T17:00:47-07:00, edited 1 time in total.
Except there is a bug in OpenMP that is being attended to for the next release. So my result has some noise scattered about. But if I add (as I have) -limit thread 1, it fixes the issue until the fix is provided.
Please always provide your platform? Your version is rather old and I would suggest you upgrade as bugs are still being fixed.