XnView v1.74 Resize DPI Bug

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
ckit
XnThusiast
Posts: 2583
Joined: Tue Feb 17, 2004 1:11 am
Location: QLD, Australia
Contact:

XnView v1.74 Resize DPI Bug

Post by ckit »

Steps:
1. Load a 800x600 image (any image maybe) into XnView View mode
2. Choose Resize -> Standard Size -> 1600x1200
3. Change the DPI by going up by 1,2 or 3 (73,74 or 75dpi)
4. Change the DPI back to 72dpi
5. Screen Size now says "1599x1200" it should be "1600x1200"

I can re-produce this bug easily.
Sigh, another bug related to this...

Steps:
1. Load the same image -> mh.jpg
2. The Resize screen says 71dpi when it should be 72dpi
3. Go back and check image info and it says the image is 72dpi by default.

Some MAJOR calculation bugs here.
AMD Ryzen 3 3300X 3.8Ghz, 16Gb DDR4, RX6600XT with Dell U2520D at 2560x1440@60Hz scaling 125%
Win11 x64 24H2, Hard Disk Sentinel Pro, MS PowerToys, Process Lasso Pro and Wintoys
User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnView v1.74 Resize DPI Bug

Post by xnview »

ckit wrote:Steps:
1. Load a 800x600 image (any image maybe) into XnView View mode
2. Choose Resize -> Standard Size -> 1600x1200
3. Change the DPI by going up by 1,2 or 3 (73,74 or 75dpi)
4. Change the DPI back to 72dpi
5. Screen Size now says "1599x1200" it should be "1600x1200"
Ok, i'll fix ti.
Steps:
1. Load the same image -> mh.jpg
2. The Resize screen says 71dpi when it should be 72dpi
3. Go back and check image info and it says the image is 72dpi by default.
I can't reproduce it. You load a picture in 72 dpi, and in the resize dialog, you have 71 as DPI?
Pierre.
ckit
XnThusiast
Posts: 2583
Joined: Tue Feb 17, 2004 1:11 am
Location: QLD, Australia
Contact:

Re: XnView v1.74 Resize DPI Bug

Post by ckit »

xnview wrote:
ckit wrote:Steps:
1. Load a 800x600 image (any image maybe) into XnView View mode
2. Choose Resize -> Standard Size -> 1600x1200
3. Change the DPI by going up by 1,2 or 3 (73,74 or 75dpi)
4. Change the DPI back to 72dpi
5. Screen Size now says "1599x1200" it should be "1600x1200"
Ok, i'll fix ti.
Steps:
1. Load the same image -> mh.jpg
2. The Resize screen says 71dpi when it should be 72dpi
3. Go back and check image info and it says the image is 72dpi by default.
I can't reproduce it. You load a picture in 72 dpi, and in the resize dialog, you have 71 as DPI?
Yes, thats right.
It only occurs with "mh.jpg - http://www.in-tra.com.pl/~lukasz/mh.jpg" other pictures are fine.
AMD Ryzen 3 3300X 3.8Ghz, 16Gb DDR4, RX6600XT with Dell U2520D at 2560x1440@60Hz scaling 125%
Win11 x64 24H2, Hard Disk Sentinel Pro, MS PowerToys, Process Lasso Pro and Wintoys
User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnView v1.74 Resize DPI Bug

Post by xnview »

ckit wrote:
xnview wrote:
ckit wrote:Steps:
1. Load a 800x600 image (any image maybe) into XnView View mode
2. Choose Resize -> Standard Size -> 1600x1200
3. Change the DPI by going up by 1,2 or 3 (73,74 or 75dpi)
4. Change the DPI back to 72dpi
5. Screen Size now says "1599x1200" it should be "1600x1200"
Ok, i'll fix ti.
Steps:
1. Load the same image -> mh.jpg
2. The Resize screen says 71dpi when it should be 72dpi
3. Go back and check image info and it says the image is 72dpi by default.
I can't reproduce it. You load a picture in 72 dpi, and in the resize dialog, you have 71 as DPI?
Yes, thats right.
It only occurs with "mh.jpg - http://www.in-tra.com.pl/~lukasz/mh.jpg" other pictures are fine.
Ok, i'll fix it
Pierre.
ckit
XnThusiast
Posts: 2583
Joined: Tue Feb 17, 2004 1:11 am
Location: QLD, Australia
Contact:

Post by ckit »

I just checked the picture with IrfanView,
DPI says 72dpi BUT the EXIF info says the DPI is 71dpi which is where the problem is!!!!
Last edited by ckit on Tue Nov 30, 2004 3:49 am, edited 1 time in total.
AMD Ryzen 3 3300X 3.8Ghz, 16Gb DDR4, RX6600XT with Dell U2520D at 2560x1440@60Hz scaling 125%
Win11 x64 24H2, Hard Disk Sentinel Pro, MS PowerToys, Process Lasso Pro and Wintoys
User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

ckit wrote:I just checked the picture with IrfanView,
DPI says 72dpi BUT the EXIF info says the DPI is 71dpi which is where the problem is!!!!
Oh ok, if you have Options/Read/Use EXIF DPI...
Pierre.
ckit
XnThusiast
Posts: 2583
Joined: Tue Feb 17, 2004 1:11 am
Location: QLD, Australia
Contact:

Post by ckit »

Ah now I understand, I didn't know that option existed.
Thank you for pointing it out.
AMD Ryzen 3 3300X 3.8Ghz, 16Gb DDR4, RX6600XT with Dell U2520D at 2560x1440@60Hz scaling 125%
Win11 x64 24H2, Hard Disk Sentinel Pro, MS PowerToys, Process Lasso Pro and Wintoys
Post Reply