Given these two images of size 512x512 with transparent background:
circle.png
inner.png
I'd like to overlay these two images, so that they appear centered and shrink the image size down to say 64x64. My initial attempt looks like:
convert -background none inner.png circle.png -layers flatten -resize 64x64 output.png
This produces:
From a design perspective, the inner image looks a bit too large relatively, so I'd like to scale it down a little bit. And despite being technically centered, I'd prefer to move it a little bit to the right, but without increasing the total width of the image. I think this requires to use -geometry. I have tried many combinations, but I never get the desired effect. For instance
convert -background none inner.png -geometry 256x256 circle.png -layers flatten -resize 64x64 output.png
produces
In a sense the inner image has become smaller relatively, but not in the way I expected.
Any ideas how this can be accomplished with imagemagick?




