Page 1 of 1

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

Posted: 2014-08-12T22:11:36-07:00
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!

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

Posted: 2014-08-12T22:40:47-07:00
by fmw42
try putting the settings before the operators.

Code: Select all

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