I have a 70px x 70px image logo. I want to make a 170px X 70px transparent image and append the logo in the center of this. How can this be achieved with the ImageMagick command line tool convert.exe?
Any help will be highly appreciated.
Thanks.
I have a 70px x 70px image logo. I want to make a 170px X 70px transparent image and append the logo in the center of this. How can this be achieved with the ImageMagick command line tool convert.exe?
Any help will be highly appreciated.
Thanks.
I hope you do not mind me saying but you have missread the manual. Append is for joining two images side by side or one above the other; not one on top of another. The code below will work but if you want to do something more complicated you would need to use -composite.
convert logo.png -background none -gravity center -extent 170x70 output.png
Alternate method requested:
convert -size 170x70 xc:none logo.png -geometry +100+10 -composite output.png