Black background (instead of transparent) after drop shadow

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?".
nandinga
Posts: 10
Joined: 2014-10-10T02:14:03-07:00
Authentication code: 6789

Re: Black background (instead of transparent) after drop sha

Post by nandinga »

GREAT SUCCESS!!!!!!!!!!!!!

GENIUS Snibgo, you GENIUS!!! Ufff it would be great to have a list of ImageMagick "state vars". Those, like the compose mode, fill, background, etc. can make commands behave different when they're not at their default state, and in some cases it's not intuitive. When combining many commands dynamically using a script you tend to have "bundles" of IM transformations packed as one (like drop_shadow in my case here, many other in our app) and sometimes some "bundles" leave IM in a state that breaks the next.

This last version of the command works perfectly for jpeg and png. Thanks a lot Snibgo!! :)
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Black background (instead of transparent) after drop sha

Post by snibgo »

Pleasure. Sorry it took so long. (Blame my dentist, who drilled and filled my root canals today.)

Yes, every option may affect more than one operator, and every option has a default. I use http://www.imagemagick.org/script/comma ... ptions.php as my usual reference, but it certainly isn't a complete description of effects or defaults.

When I wrote an interface from VIPS/NIP2 to IM, I discovered a huge number of these effects, and I'm sure I missed some. If you are volunteering to improve the documentation, we'd all be grateful. Ha!
snibgo's IM pages: im.snibgo.com
Post Reply