Landscape to portrait BUT keep subjects

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

Moderator: xnview

xakmad
Posts: 1
Joined: Thu Mar 12, 2026 9:21 pm

Landscape to portrait BUT keep subjects

Post by xakmad »

I've ordered a portrait ONLY 7" digital photo display.
Co-pilot has told me that this software can
a) take a "start" photo folder, and set that as a batch
b) examine ONLY the landscape JPGS
c) crop the photo to turn it into a portrait, but always keep the HEIGHT of the original
eg only cut the Left and right either side of 2 / 3 central charaters
or only left, or only right of the photo

the intentions is to ONLY preserve the PEOPLE in the photo , but not to just zoom in on faces. Eh frame the photo to INCLUDE as much background (lake mountain landscape) as possible without cutting people out. it isnt a requirement to LOSE all the 'setting'

i realize, of course, that a landscape, closely cropped to 6 people with arms around each other is going to struggle, eg "portrait to 2 central characters and lose the rest" and i can live with that and manually do it.

so, sorry to be a) so amateur in maybe nor researching enough and b) so specific!, but can any one advise please if this can do the requirements above.

any and all help is greatly appreciated, and i realise i am a real new-comer, and do not wish to cause offense by being a "DROP-IN-ONLY" forum user...

there are a LOT of family photos that need processed, and IF the software can just copy the 'already portrait' to the output folder as well as 'process the landscapes as above; then that would be fantastic !!

thanks again
jkm
Posts: 412
Joined: Sat May 11, 2024 12:43 am

Re: Landscape to portrait BUT keep subjects

Post by jkm »

Welcome to the forums...

Yes, XnViewMP can crop photos. Almost any viewer software can. And yes, you can crop to preserve the original height of the image. And yes, you can act on only the landscape photos.

You can also tell it to crop lots of images in a batch manner. You can specify the crop coordinates, so all the images will be cropped the same.

If if you have 1000 images with the subject in the center (or all on the left, or whatever, as long as they're the same) of the frame, then yes you could crop 1000 images to portrait in just a few clicks. But that will not produce good results unless all your humans were positioned at the same size and location in the frame.

If copilot led you to believe that all your images could be automagically cropped to faithfully preserve the people wherever they are in the frame, that is typical AI nonsensical fantasy.

Can your "a b c" procedure be executed exactly as written for a bunch of arbitrary images with arbitrary compositions and different sizes from different cameras? No, not in any software. You will have to do some organization and provide rules for batch processing.

When it's a matter of "crop this way for this photo, crop that other way for that photo" then you are going to have to be manually positioning the crop area.

Good luck...
cday
XnThusiast
Posts: 4524
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Landscape to portrait BUT keep subjects

Post by cday »

Yes, certainly not easy unless there is a software that can automatically identify at least the approximate area of interest.

But if you are reasonably consistent in how you photograph groups, maybe batch processing using some standard settings could at least enhance a fair proportion of a batch of photographs, particularly if it would be practical for you to filter the resulting images?
cday
XnThusiast
Posts: 4524
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Landscape to portrait BUT keep subjects

Post by cday »

More:

Considering that image editing software can now identify faces, it would seem that in principle an option could be provided to perform about what xakmad is requesting, if there a general need.

If there is indeed no software that could be set up to automatically batch create the required output images, performing what is required manually on a folder of images would be in a category of needs that sometimes arises where a manual operation is required between opening and resaving an image, and then stepping to the next image in a series.

That type of problem can be easily automated, except for the manual operation performed between opening and resaving each image, using a software that supports macros, particularly if a macro recorder is provided. The macro would open an image, pause to allow the required manual operation to be performed, then resave the modified image and step to the next image in the folder.

If xakmad decides that cropping at least selected images manually might be worthwhile, the XnView MP option 'Crop, save and next' should similarly provide all the functionality required to custom crop a relatively large number of images in a reasonable time.