In past when I've done this, I have used a basic composite command:
Code: Select all
composite source.png background.jpg output.jpg
I know you can do this by specifying the exact geometry on the command line. But none of the PNGs have the same dimensions, and I really don't see that it would save me any time to manually work out all those hundreds of different commands compared to cropping manually.
Is there a way to tell ImageMagick to just stick the smaller images on top of the larger ones and discard any pixels outside the bounds of the smaller one?