Page 1 of 1
XnView MP stretches image
Posted: Sun Aug 04, 2019 6:14 am
by ncJohn
I opened a TIFF file in XnView MP and thought it looked "longer" than normal. So I used "open with" to open the same file in my editor and the two images are quite different. In the example posted, it's very easy to see because the eyes are approximately at the same level but the chin in XnView MP is quite a lot lower.
I thought perhaps this was a known issue but I did a forum search for "distort" and "stretch" and didn't find anything. Can someone tell me how to prevent this?
Thanks
I'm using version 0.93 64-bit on Windows 8.1 Pro 64-bit.
Re: XnView MP stretches image
Posted: Sun Aug 04, 2019 6:50 am
by cday
ncJohn wrote: Sun Aug 04, 2019 6:14 am
I opened a TIFF file in XnView MP and thought it looked "longer" than normal. So I used "open with" to open the same file in my editor and the two images are quite different. In the example posted, it's very easy to see because the eyes are approximately at the same level but the chin in XnView MP is quite a lot lower.
The chin is lower, but the face is also wider...
If you adjust the scaling in XnView MP (there are various options in Tools > Settings... > View -- View tab for finer control if you need it) is the effect still apparent?
Are you able to measure the width and height of each image on the screen reasonably accurately and calculate the ratios?
Is the effect still present in the image when saved, so that you could upload the two versions for comparison?
The ultimate test might be to create a circle in a drawing program and save the drawing in an image format, then view the image on the screen.
Re: XnView MP stretches image
Posted: Sun Aug 04, 2019 8:15 am
by XnTriq
Have you tried activating Adjust zoom if X/Y DPI are different in Tools → Settings… → General → General, ncJohn?
Re: XnView MP stretches image
Posted: Sun Aug 04, 2019 6:01 pm
by cday
Further to my post above, and to Xntriq's post above:
The attached image of a circle, drawn in Libre Office Draw, should enable the accurate display of images to be verified, tested in XnView MP 0.93.
Re: XnView MP stretches image
Posted: Sun Aug 04, 2019 6:45 pm
by XnTriq
Here's a bad example:
soup-54cb553eddea2.jpg from “
Square Image Renders as Narrow Strip” has an X-Resolution of 72 and a Y-Resolution of 240 dpi.
Code: Select all
╒════════════════════════════════════════════════════════════════════╕
│ File │
╞════════════════════╤═══════════════════════════════════════════════╡
│ Filename │ soup-54cb553eddea2.jpg │
├────────────────────┼───────────────────────────────────────────────┤
│ Filepath │ X:\Test\ │
├────────────────────┼───────────────────────────────────────────────┤
│ Description │ JPEG Image │
├────────────────────┼───────────────────────────────────────────────┤
│ File size │ 872.41 KiB (893.346) │
├────────────────────┼───────────────────────────────────────────────┤
│ Creation date/time │ 30.01.2015 - 10:56:14 │
├────────────────────┼───────────────────────────────────────────────┤
│ Modified date/time │ 30.01.2015 - 10:56:14 │
├────────────────────┼───────────────────────────────────────────────┤
│ Accessed date/time │ 30.01.2015 - 10:56:14 │
├────────────────────┼───────────────────────────────────────────────┤
│ Rating │ 0 │
├────────────────────┼───────────────────────────────────────────────┤
│ Colour Label │ 0 │
├────────────────────┼───────────────────────────────────────────────┤
│ File's icon │ shimgvw.dll,3 │
╞════════════════════╧═══════════════════════════════════════════════╡
│ Image │
╞════════════════════╤═══════════════════════════════════════════════╡
│ Format │ JPEG TrueColor (v1.1) │
├────────────────────┼───────────────────────────────────────────────┤
│ Width │ 1000 │
├────────────────────┼───────────────────────────────────────────────┤
│ Height │ 1000 │
├────────────────────┼───────────────────────────────────────────────┤
│ # of bits │ 24 │
├────────────────────┼───────────────────────────────────────────────┤
│ Color model │ RGB │
├────────────────────┼───────────────────────────────────────────────┤
│ DPI │ 72 x 240 │
├────────────────────┼───────────────────────────────────────────────┤
│ Print size │ 35.28x10.58 cm, 13.89x4.17 inches │
├────────────────────┼───────────────────────────────────────────────┤
│ Compression │ JPEG │
├────────────────────┼───────────────────────────────────────────────┤
│ Progressive mode │ Yes │
├────────────────────┼───────────────────────────────────────────────┤
│ Sub-sampling │ 1x1,1x1,1x1 │
├────────────────────┼───────────────────────────────────────────────┤
│ Images/frames count│ 1 │
├────────────────────┼───────────────────────────────────────────────┤
│ Origin │ Top-Left │
╞════════════════════╧═══════════════════════════════════════════════╡
│ Color Profile │
╞════════════════════╤═══════════════════════════════════════════════╡
│ Description │ sRGB IEC61966-2.1 │
├────────────────────┼───────────────────────────────────────────────┤
│ Manufacturer │ IEC http://www.iec.ch │
├────────────────────┼───────────────────────────────────────────────┤
│ Model │ IEC 61966-2.1 Default RGB colour space - sRGB │
├────────────────────┼───────────────────────────────────────────────┤
│ Copyright │ Copyright (c) 1998 Hewlett-Packard Company │
└────────────────────┴───────────────────────────────────────────────┘
Re: XnView MP stretches image
Posted: Thu Aug 08, 2019 4:57 am
by ncJohn
Well, I did measure them and they're the same.

In trying to figure out why they look different to me, I changed the background color in both programs but that wasn't the problem. Finally, I put the two programs side by side with reduced windows and I found out that
whichever image is on the left looks longer/taller to me! In fact, even with an image of a circle, if I put them side by side, the one on the left looks like an oval. I thought maybe it was my monitor but no matter where I put them on the screen, the effect is the same.
So the software's fine, it's just my brain.
Sorry for the trouble, and thanks.
Re: XnView MP stretches image
Posted: Thu Aug 08, 2019 2:24 pm
by cday
ncJohn wrote: Thu Aug 08, 2019 4:57 am
Well, I did measure them and they're the same.
In trying to figure out why they look different to me, I changed the background color in both programs but that wasn't the problem. Finally, I put the two programs side by side with reduced windows and I found out that
whichever image is on the left looks longer/taller to me! In fact, even with an image of a circle, if I put them side by side, the one on the left looks like an oval. I thought maybe it was my monitor but no matter where I put them on the screen, the effect is the same.
So the software's fine, it's just my brain.
Interesting, I also sometimes noticed that the circle looked slightly oval, I suspect due to astigmatism; the apparent different sizes you saw between left and right I suspect may be due to different prescriptions in each eye, and the way the brain combines the two images it receives.
For completeness, did you check the image properties and confirm that the DPI X and Y values are identical? I wasn't aware of the settings 'Adjust zoom if X and Y values are different' option that XnTriq referred to, but when I checked the default setting seemed in any case to be enabled.
Re: XnView MP stretches image
Posted: Thu Aug 08, 2019 5:13 pm
by ncJohn
For completeness, did you check the image properties and confirm that the DPI X and Y values are identical?
Yes, the DPIs are the same. (I've never even heard of having different DPIs for the X and Y.)