imagemagick - Perform Resize and Fill canvas using Mogrify -


There is a demo on this page on the ImageMagic site:

I want to take action in this example: Convert logo: -size 80x80 \ & gt; \ -Size 80x80 xc: blue + swap -gravity center -composite \ space_resize.jpg

But for the number of large files, I think that the right tool is to create more, but this + Swap or xc: blue flags do not know.

Advice?

I was able to complete the above using:

 < Code> mogrify -resize 300x300 * .jpg mogrify- Pre 300x300 -Gurviti Center- Fill Films * .jpg   

This will give the largest dimensions of the pictures at 300 pixels. This will fill the canvas with a small dimension of 300 pixels and fill the vacant space in white.

Comments