答案1
extent
必须使用后 background
和gravity
,例如:
gm convert -resize '1920x1080>' -background black -gravity SouthEast -extent 1920x1080 infile outfile
或者
gm convert infile -resize '1920x1080>' -background black -gravity SouthEast -extent 1920x1080 outfile