I'm using the Command Line composite command in a Windows command prompt, but I can't work out how to scale the overlay to fit the background image, without cropping the overlay (with certain background aspect ratios).
The following code works well for squarish (1:1), background images, but for narrow background images, the logo gets cropped at the left and right, and for short background images, the logo gets cropped at the top and bottom.
Code: Select all
composite -gravity center logo.png[390x] pic1.jpg[x400] -dissolve 30 test1.jpg