linux-bash: -background color black doesn't work

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
homer
Posts: 1
Joined: 2014-08-12T22:07:05-07:00
Authentication code: 6789

linux-bash: -background color black doesn't work

Post by homer »

Good morning everybody,

I tried to use

Code: Select all

mogrify -extent 546x364 -gravity center -background black *.jpg
...but the background of the image is getting white. I tried also with

Code: Select all

mogrify -extent 546x364 -gravity center -fill "#000000" *.jpg
and with

Code: Select all

mogrify -extent 546x364 -gravity center -background "#000000" *.jpg
but without success; everytime the background color is getting white. Does anybody know what I'm doing wrong?

Thank you!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: linux-bash: -background color black doesn't work

Post by fmw42 »

try putting the settings before the operators.

Code: Select all

mogrify -gravity center -background black -extent 546x364 *.jpg
Post Reply