How to center pictures on colored background?
Posted: 2015-02-01T10:04:34-07:00
I have some photos of different sizes which I need to resize to fit within a rectangle of 576px X 432px while preserving their aspect ratios. I then need to center each photo on a blue background of exactly 720px X 540px. Most original photos are larger than 720x540, a few are smaller. I've used mogrify to resize the original photos into another folder:
mogrify -format bmp -path ..\name-of-target-folder -resize 576x432 *.*
How do I then center each of these resized images on a new image of 720x540, surrounding the photos with a blue background (#2f3699)?
Can this be done with a single IM command? (If so, how?) If not, what command(s) should I perform after this mogrify?
Thanks,
FastBill
mogrify -format bmp -path ..\name-of-target-folder -resize 576x432 *.*
How do I then center each of these resized images on a new image of 720x540, surrounding the photos with a blue background (#2f3699)?
Can this be done with a single IM command? (If so, how?) If not, what command(s) should I perform after this mogrify?
Thanks,
FastBill