Page 1 of 1

Enhance resize in Batch Convert

Posted: Fri Oct 06, 2006 2:58 pm
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

Re: Enhance resize in Batch Convert

Posted: Sat Oct 07, 2006 8:01 am
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'?

Posted: Mon Oct 09, 2006 2:01 pm
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

Posted: Tue Oct 10, 2006 12:05 am
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...)

Posted: Tue Oct 10, 2006 9:05 am
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'?

Posted: Thu Oct 12, 2006 12:19 am
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

Posted: Thu Oct 12, 2006 12:30 pm
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'??

Posted: Thu Oct 12, 2006 1:48 pm
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]

Posted: Thu Oct 12, 2006 6:02 pm
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)...

Posted: Thu Oct 12, 2006 6:31 pm
by Olivier_G
xnview wrote:So only a new checkbox :-)
I knew you would prefer this! :mrgreen:

Re: Enhance resize in Batch Convert

Posted: Tue Dec 19, 2006 1:46 am
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").