Border to make an image square

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, xnview

Post Reply
Phil_Rose
Posts: 13
Joined: Wed Aug 28, 2019 7:04 pm

Border to make an image square

Post by Phil_Rose » Tue Jan 21, 2020 12:13 am

Hi all, I am wondering if this is possible and I'm thinking it's probably not. I would like to set up a batch edit to take an image, reduce it to 1000 pixels on the long edge and then add a white border only to top and bottom (in the instance that the image is in landscape mode) or to left and right (if the image is in portrait mode) to make the image square with a white strip affecting that. Does that make sense? I can do this to an single individual image by opening it up and going to Canvas Resize but I don't seem to be up to do this as a batch. Can anybody help? I am attaching an image to show what I mean in Canvas resize.

Thanks very much!
Attachments
ScreenHunter 51.jpg
ScreenHunter 51.jpg (30.11 KiB) Viewed 418 times

Phil_Rose
Posts: 13
Joined: Wed Aug 28, 2019 7:04 pm

Re: Border to make an image square

Post by Phil_Rose » Tue Jan 21, 2020 1:20 am

Never mind! Figured it out. I am a fool!

User avatar
Rick
Posts: 63
Joined: Sat Oct 08, 2005 4:10 pm
Contact:

Re: Border to make an image square

Post by Rick » Tue Jan 21, 2020 3:20 pm

Canvas resize is in the batch commands so you should be able to do it. You will probably have to make 2 batches; one for portrait and one for landscape. I would consider incorporating with a resize as a 1px border is a lot different on a 100 x 100px photo than a 1000 X 1000px
--
Rick

Post Reply