extent
deve ser usado após background
e gravity
, por exemplo:
gm convert -resize '1920x1080>' -background black -gravity SouthEast -extent 1920x1080 infile outfile
ou
gm convert infile -resize '1920x1080>' -background black -gravity SouthEast -extent 1920x1080 outfile