Convert and resize together
Posted: 2019-03-03T09:20:15-07:00
Hello everyone!
I need to put one image (overlay 2748x820 px) on another (background 1000x1000 px). During this operation I want to change overlay size intentionally and preserve background's size change
So I try to use such line (Win 8.1, x64, command line):
magick convert background.jpg \( overlay.png -gravity center -resize 200 \) -composite result.jpg
but it changes both the size of overlay and backround images so that result image is 200x200 px while I want have result image 1000x1000 px (like background) and overlay image 200x60 px in the center of it.
is it possible? thanks for your help in advance
I need to put one image (overlay 2748x820 px) on another (background 1000x1000 px). During this operation I want to change overlay size intentionally and preserve background's size change
So I try to use such line (Win 8.1, x64, command line):
magick convert background.jpg \( overlay.png -gravity center -resize 200 \) -composite result.jpg
but it changes both the size of overlay and backround images so that result image is 200x200 px while I want have result image 1000x1000 px (like background) and overlay image 200x60 px in the center of it.
is it possible? thanks for your help in advance