Request: Crop/pad image to aspect ratio

Older bugs which are supposed to be fixed in 0.84. *** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: XnTriq, helmut, xnview, Dreamer

User avatar
user0
XnThusiast
Posts: 1598
Joined: Sat May 09, 2015 9:37 am

Re: Request: Crop/pad image to aspect ratio

Post by user0 »

helmut wrote: Tue Nov 29, 2022 9:11 pm I just had a look at "Canvas resize" in batch conversion and noticed that in batch conversion there's a mode available (Normal, Square - longest side, Square - Shortest side) available which aren't available in normal "Canvas resize". Again, that's no good.
ah, have not noticed that as well..
they definetly have to have the same functionality
need more mockups )
cday
XnThusiast
Posts: 4011
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Request: Crop/pad image to aspect ratio

Post by cday »

cday wrote: Tue Nov 29, 2022 4:38 pm Within the present Canvas resize menu design, a new option Mode -- Fit ratio could describe the new function if new canvas, with the set Background colour, is added as required?

But would that be compatible with the rest of the menu?
'Fit ratio' might be considered as a 'placeholder' in this discussion...
User avatar
user0
XnThusiast
Posts: 1598
Joined: Sat May 09, 2015 9:37 am

Re: Request: Crop/pad image to aspect ratio

Post by user0 »

helmut wrote: Tue Nov 29, 2022 9:11 pm Please note that "Canvas resize" and "Cropping" are related actions which should be kept separate to keep dialogs simple.
cday wrote: Wed Nov 30, 2022 11:03 am
cday wrote: Tue Nov 29, 2022 4:38 pm Within the present Canvas resize menu design, a new option Mode -- Fit ratio could describe the new function if new canvas, with the set Background colour, is added as required?

But would that be compatible with the rest of the menu?
'Fit ratio' might be considered as a 'placeholder' in this discussion...
I see what you mean, but cropping functionality is already there in both dialogs, just set dimentions lower than original and it also uses anchor position.

I played a little bit more with settings and think ACDSee's approach is quite handy.
Having WxH + Aspect Ratio (free, original, custom) on the same form at once allow user to set required AR, WxH will automatically extend to meet new AR, BUT if you need to crop, you can manually decrease W or H.
cday
XnThusiast
Posts: 4011
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Request: Crop/pad image to aspect ratio

Post by cday »

Adding a new option to Canvas resize if one is needed seems a good idea, but from the usability standpoint, clarity of operation, I think canvas resizing and cropping should be kept separate. However, if it only incidentally possible to also crop in a particular way, that would be acceptable, something 'known' but not 'advertised'.

But to be fair, I haven't studied any new interface you might be proposing.
User avatar
helmut
Posts: 8705
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Request: Crop/pad image to aspect ratio

Post by helmut »

I much doubt that Pierre will combine "AspectPad" and "Canvas resize" dialog very soon. So I wonder how to get the best out of the current situation. My suggestion is simple: Rename "AspectPad" dialog to "Canvas ratio" or "Canvas resize - aspect ratio" and that's it for now.
User avatar
user0
XnThusiast
Posts: 1598
Joined: Sat May 09, 2015 9:37 am

Re: Request: Crop/pad image to aspect ratio

Post by user0 »

made few more mockups as separate post:
image/canvas resize - unify dialogs
Zeus
Posts: 5
Joined: Wed Dec 28, 2022 1:56 pm

Re: Request: Crop/pad image to aspect ratio

Post by Zeus »

Adding an alpha option is necessary for recanvasing transparent PNGs to a certain aspect ratio.