Setting Background color of a MagickWand

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
Sargis

Setting Background color of a MagickWand

Post by Sargis »

Is there a way to set the background color of a magickwand that has multiple images so that when montaged to a thumbnail size that isnt NxN but is instead MxN, the area that the image doesnt fill is filled with the background color? Or does the background color have to be set after the montage operation is done?

Thanks,

Sargis
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Setting Background color of a MagickWand

Post by anthony »

Note Images will only fill a NxN area only if they have a square aspect ratio. Most images don't the parts they don't fill will be filled in by montage with whatever background it is using. What it used depends on the options in use. See IM Examples , Montage for examples of what montage does with various options.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply