Code: Select all
convert -size 1000x1000 xc:white rose: -gravity Center -composite out.png- 1000 px width and height same as rose, or
- width same as rose and 1000 px height
Code: Select all
convert -size 1000x1000 xc:white rose: -gravity Center -composite out.pngAs fmw42 mentioned, you can use "-extent" in a fairly simple command like this...jamadagni wrote: 2017-11-02T10:15:22-07:00But say I want to specify that the rose should be centered in a white field of:then how do I do it?
- 1000 px width and height same as rose, or
- width same as rose and 1000 px height
Code: Select all
convert rose: -background white -gravity center -extent 1000x0 out.png
Code: Select all
convert rose: -background white -gravity center -extent 1000x out.pngUsers browsing this forum: Amazon [Bot], Bing [Bot], Google [Bot] and 6 guests