Please provide crop aspect ratios <1.0

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, helmut, xnview

rsbrux
Posts: 30
Joined: Sun May 20, 2018 5:08 am

Please provide crop aspect ratios <1.0

Post by rsbrux »

I like to use 16:9 or 9:16 as the standard aspect ratio for most pictures, and there are other portrait mode aspect ratios that I use (e.g. 3:4 for portraits or 0.707 for A4). However, XnView only seems to provide crop aspect ratios for landscape mode (e.g. 1.78 for 16:9 or 1.414 for A4). Please add aspect ratios for portrait mode.
XnViewMP 1.8.2 64-bit
running under Windows 10 Pro x64
User avatar
xnview
Author of XnView
Posts: 45247
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Please provide crop aspect ratios <1.0

Post by xnview »

you can edit CropSize.xml
Pierre.
rsbrux
Posts: 30
Joined: Sun May 20, 2018 5:08 am

Re: Please provide crop aspect ratios <1.0

Post by rsbrux »

Thanks, but I don't find any such file. Where is it located?

P.S. A search my installation directory, c:\Program Files\XnViewMP, finds no XML files at all.
Searching the entire PC for cropsize.xml or CropSize.xml comes up empty.
XnViewMP 1.8.2 64-bit
running under Windows 10 Pro x64
rsbrux
Posts: 30
Joined: Sun May 20, 2018 5:08 am

Re: Please provide crop aspect ratios <1.0

Post by rsbrux »

As it turns out, XnView MP handles this automatically in most cases. If I select 16:9 and attempt to make a crop selection on a portrait mode picture, XnView MP automatically uses 9:16 instead. However, there are still cases where this does not suffice, e.g. when I want to crop a portrait mode cutout out of a landscape mode picture.
XnViewMP 1.8.2 64-bit
running under Windows 10 Pro x64
User avatar
user0
XnThusiast
Posts: 2121
Joined: Sat May 09, 2015 9:37 am

Re: Please provide crop aspect ratios <1.0

Post by user0 »

rsbrux wrote: Mon Sep 02, 2024 7:09 am
xnview wrote: Mon Sep 02, 2024 6:45 am you can edit CropSize.xml
Where is it located?
1. open any image
2. press Shift+X
3. press ... button
4. press OK
CropSize.xml will appear in app folder
Kadet
Posts: 174
Joined: Thu Oct 20, 2022 7:23 pm

Re: Please provide crop aspect ratios <1.0

Post by Kadet »

rsbrux wrote: Tue Oct 08, 2024 1:00 pm As it turns out, XnView MP handles this automatically in most cases. If I select 16:9 and attempt to make a crop selection on a portrait mode picture, XnView MP automatically uses 9:16 instead. However, there are still cases where this does not suffice, e.g. when I want to crop a portrait mode cutout out of a landscape mode picture.
If you select specific proportions and select a part of the photo, after clicking again on the proportions option and selecting "specific ratio", the proportions are reversed. So, for example, from the initial selection of 16:9 you can make 9:16.
rsbrux
Posts: 30
Joined: Sun May 20, 2018 5:08 am

Re: Please provide crop aspect ratios <1.0

Post by rsbrux »

@user0
Thanks, that created the file.

@Kadet,
That doesn't work for me (in XnViewMP 1.80). I see no change in the drop-down menu for aspect ratios when a selection is active in the picture and no "specific ratio". There is an entry "fixed ratio", but it doesn't seem to do anything.
XnViewMP 1.8.2 64-bit
running under Windows 10 Pro x64
Kadet
Posts: 174
Joined: Thu Oct 20, 2022 7:23 pm

Re: Please provide crop aspect ratios <1.0

Post by Kadet »

rsbrux wrote: Wed Oct 09, 2024 3:23 pm @Kadet,
That doesn't work for me (in XnViewMP 1.80). I see no change in the drop-down menu for aspect ratios when a selection is active in the picture and no "specific ratio". There is an entry "fixed ratio", but it doesn't seem to do anything.
You have right, sometimes it's not work, but mostly for me it works.
But of course, You can add new aspect ratios via "...".