Enhance resize in Batch Convert

Ideas for improvements and requests for new features in XnView Classic

Moderators: XnTriq, helmut, xnview

Post Reply
Guest

Enhance resize in Batch Convert

Post by Guest »

Is it possible to add a drop down list for selecting type of fit (when option "keep ratio" is on)?

There is four types of fit that saves ratio:

1. Fit width
2. Fit height
3. Fit width and height ( = fit in)
4. Fit width or height ( = fit over)

Currently, as I see, it is not possible to do fit number 4 in xnView.

This is very usefull when you have a large number of images with different sizes and proportions, that must be set all to one specified size, but with as little cropping as possible. First, one can do "resize - fit over", and than "resize canvas - top center", for instance. I don't see any other way to do this.

Regards,
Ognjen
User avatar
xnview
Author of XnView
Posts: 43595
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Enhance resize in Batch Convert

Post by xnview »

Anonymous wrote:Is it possible to add a drop down list for selecting type of fit (when option "keep ratio" is on)?

There is four types of fit that saves ratio:

1. Fit width
2. Fit height
3. Fit width and height ( = fit in)
4. Fit width or height ( = fit over)

Currently, as I see, it is not possible to do fit number 4 in xnView.

This is very usefull when you have a large number of images with different sizes and proportions, that must be set all to one specified size, but with as little cropping as possible. First, one can do "resize - fit over", and than "resize canvas - top center", for instance. I don't see any other way to do this.
What is 'Fit W or H'?
Pierre.
Guest

Post by Guest »

Ok, examples for everything:

If we want to fit two images sized 200x400 and 400x200 to 100x100 (WxH), keeping the aspect ratio:

1. W: 200x400 -> 100x200;
400x200 -> 100x50

2. H: 200x400 -> 50x100
400x200 -> 200x100

3. W and H: 200x400 -> 50x100
400x200 -> 100x50

4. W or H: 200x400 -> 100x200
400x200 -> 200x100

In other words, "W and H" resize will always produce an image that is smaller or equal to the requested size (or, to be more precise: one dimension will be equal, and other will be smaller) -- that's why it is called "Fit in".

"W or H" will produce an image that is BIGGER or equal to the requested size (one dimnsion is equal, while other is bigger). Thats why it is called "Fit over".

Regards,
Ognjen
User avatar
Olivier_G
XnThusiast
Posts: 1423
Joined: Thu Dec 23, 2004 7:17 pm
Location: Paris, France
Contact:

Post by Olivier_G »

Anonymous wrote:"W or H" will produce an image that is BIGGER or equal to the requested size (one dimnsion is equal, while other is bigger). Thats why it is called "Fit over".
I support.
What interface change would be best? (I was thinking of a simple 'Fit over' checkbox that would be ungreyed as soon as both X and Y values are entered...)
Olivier
User avatar
xnview
Author of XnView
Posts: 43595
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

Anonymous wrote:Ok, examples for everything:

If we want to fit two images sized 200x400 and 400x200 to 100x100 (WxH), keeping the aspect ratio:

1. W: 200x400 -> 100x200;
400x200 -> 100x50

2. H: 200x400 -> 50x100
400x200 -> 200x100

3. W and H: 200x400 -> 50x100
400x200 -> 100x50

4. W or H: 200x400 -> 100x200
400x200 -> 200x100

In other words, "W and H" resize will always produce an image that is smaller or equal to the requested size (or, to be more precise: one dimension will be equal, and other will be smaller) -- that's why it is called "Fit in".

"W or H" will produce an image that is BIGGER or equal to the requested size (one dimnsion is equal, while other is bigger). Thats why it is called "Fit over".
Ok, so Fit option replace 'increase only', 'decrease only', and 'switch orientation'?
Pierre.
User avatar
Olivier_G
XnThusiast
Posts: 1423
Joined: Thu Dec 23, 2004 7:17 pm
Location: Paris, France
Contact:

Post by Olivier_G »

xnview wrote:Ok, so Fit option replace 'increase only', 'decrease only', and 'switch orientation'?
None. It's a new different option.

If space is an issue, maybe it would be better to put Increase/Decrease on the same line:

Code: Select all

Only []Decrease  []Increase
Olivier
User avatar
xnview
Author of XnView
Posts: 43595
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

Olivier_G wrote:
xnview wrote:Ok, so Fit option replace 'increase only', 'decrease only', and 'switch orientation'?
None. It's a new different option.

If space is an issue, maybe it would be better to put Increase/Decrease on the same line:

Code: Select all

Only []Decrease  []Increase
Ok, so only a new checkbox 'Fit over'??
Pierre.
User avatar
Olivier_G
XnThusiast
Posts: 1423
Joined: Thu Dec 23, 2004 7:17 pm
Location: Paris, France
Contact:

Post by Olivier_G »

I looked at the whole window. Pierre, what do you think of this?

Code: Select all

□ Follow orientation (switch W/H)
□ Keep ratio
 o Fit in   o Fit over
□ Decrease  □ Increase
Resample [   |v]
- Shorter name for Orientation
- Fit in/over make sense only with Keep ratio and showing both is more explicit (alternative: only "□ Fit over (W OR H)")
- Show Increase/Decrease actions instead of their exclusive version (ie: only). Both are fine to me, though... :?
- Resample at the end (once the difficult logical choices have been made... :P )

Edit: I put another solution wich looks almost as fine to me and has fewer modifications:

Code: Select all

□ Keep ratio
 □ Fit over (W OR H)
□ Follow orientation (switch W/H)
Only  □ Decrease  □ Increase
Resample [   |v]
Olivier
User avatar
xnview
Author of XnView
Posts: 43595
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

Olivier_G wrote:Edit: I put another solution wich looks almost as fine to me and has fewer modifications:

Code: Select all

□ Keep ratio
 □ Fit over (W OR H)
□ Follow orientation (switch W/H)
Only  □ Decrease  □ Increase
Resample [   |v]
So only a new checkbox :-) (and some change)...
Pierre.
User avatar
Olivier_G
XnThusiast
Posts: 1423
Joined: Thu Dec 23, 2004 7:17 pm
Location: Paris, France
Contact:

Post by Olivier_G »

xnview wrote:So only a new checkbox :-)
I knew you would prefer this! :mrgreen:
Olivier
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Re: Enhance resize in Batch Convert

Post by Dreamer »

I support this request too, more suggestions (hotkeys):

- Fit width - Numpad 1
- Fit height - Numpad 3
- Fit width and height ( = fit in) - Numpad 7
- Fit width or height ( = fit over) - Numpad 9

More here ("beta topic").
Dreamer
Post Reply