0.98: Crop load preset is not correct

*** Please report new bugs here! ***

Moderator: Dreamer

Post Reply
User avatar
Mapaler
Posts: 38
Joined: Thu Nov 05, 2015 9:23 am
Location: China
Contact:

0.98: Crop load preset is not correct

Post by Mapaler »

XnView: MP 0.98 - 64 bit
OS: Windows 10 64bit

Load preset in Crop is not correct.

Effect: Is forced to be set to a vertical scale

To reproduce:
  1. Add a new pair of fixed but opposite pixel croppings.
    Screenshot_2021-01-16-22-13-48.png
    Screenshot_2021-01-16-22-13-48.png (46.29 KiB) Viewed 261 times
  2. Select two crop presets separately
  3. The vertical ratio is right.
    Screenshot_2021-01-16-22-16-44.png
  4. Actual behaviour (bug): the horizontal ratio is wrong :bug:
    Screenshot_2021-01-16-22-17-02.png
    Screenshot_2021-01-16-22-17-02.png (271.73 KiB) Viewed 261 times
Expected behaviour: Produces a wide crop box
Image
User avatar
xnview
Author of XnView
Posts: 34718
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.98: Crop load preset is not correct

Post by xnview »

sorry but i can't reproduce, which image size has the loaded image?
Pierre.
User avatar
Mapaler
Posts: 38
Joined: Thu Nov 05, 2015 9:23 am
Location: China
Contact:

Re: 0.98: Crop load preset is not correct

Post by Mapaler »

xnview wrote: Mon Jan 18, 2021 3:40 pm sorry but i can't reproduce, which image size has the loaded image?
I unzips a new XnViewMP, and try to re-solve the problem.
I find the proportions strangely present.

specified ratio
  1. When I select the specified ratio that width > height. such as 16:9.
    • If the picture width > height, the crop box is horizontal.
      Screenshot_2021-01-19-19-30-40.png
    • If the picture width < height, the crop box is vertical
      Screenshot_2021-01-19-19-30-49.png
  2. And I create a new specified ratio that width < height. such as 9:16.
    • If the picture width > height, the crop box is horizontal.
      Screenshot_2021-01-19-19-35-44.png
    • If the picture width < height, the crop box is vertical
      Screenshot_2021-01-19-19-35-53.png
  3. The landscape picture scale is correct, and the portrait picture scale is wrong.:bug:
Specify pixels or print sizes(inch, cm)
  1. It's different from the scale, crop ratio are not affected, whether they are landscape or portrait.
  2. Create two new pixel crop preset, and one is width > height and another one is width < height.
    Screenshot_2021-01-19-19-50-34.png
  3. If I chose 100×300, crop correctly.
    Strip 1.png
  4. If I chose 300×100, the ratio is transposed and the preset height is used as the width. :bug:
    Strip 2.png
Image
User avatar
xnview
Author of XnView
Posts: 34718
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.98: Crop load preset is not correct

Post by xnview »

Pierre.
Post Reply