Width of PNG in XnView and Word

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

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
Peter2
XnThusiast
Posts: 1365
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Width of PNG in XnView and Word

Post by Peter2 »

I have problems with the width (and heigth) of a PNG .... :shock:

I made a screenshot, cropped and saved it as PNG. Then I display it with "100%" - the image is sharp and fine. OK.

The width is displayed with "15.00 cm", but the real size on screen is "12.50" (measured with a ruler).

Then I imported the PNG to MS Word 2003, display Word with "100 %":
- The image properties are 100%, 15 cm.
- The ruler in Word shows 15 cm too; the ruler in my hand shows 17 cm.
- But the display is not sharp, and displaying "100% in XnView" and "100% in Word" side by side shows a remarkable difference.

What happens here?

Regards

Peter
XnViewMP <Current version> German, XnConvert <Current version>, Win 10
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Width of PNG in XnView and Word

Post by xnview »

Could you post a screenshot?
Pierre.
User avatar
Peter2
XnThusiast
Posts: 1365
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: Width of PNG in XnView and Word

Post by Peter2 »

xnview wrote:Could you post a screenshot?
I sent per e-mail.

Peter
XnViewMP <Current version> German, XnConvert <Current version>, Win 10
User avatar
DOS386
Posts: 291
Joined: Sun Jun 11, 2006 2:43 pm

Re: Width of PNG in XnView and Word

Post by DOS386 »

Peter2 wrote:I made a screenshot, cropped and saved it as PNG
Good :-) With XNVIEW only ???
The width is displayed with "15.00 cm", but the real size on screen is "12.50" (measured with a ruler)
The physical size refers, if ever, to printing, not the screen ;-) But I don't get any physical size when saving a shot with XNVIEW ... how did you do ? :bug:
Then I imported the PNG to MS Word 2003, display Word with "100 %":
- The image properties are 100%, 15 cm.
- The ruler in Word shows 15 cm too; the ruler in my hand shows 17 cm.
- But the display is not sharp, and displaying "100% in XnView" and "100% in Word" side by side shows a remarkable difference.
What happens here?
I can't reproduce any bug in XN. Most likely this is due to World's size understanding and related to the pHYs chunk in PNG format. Does you file have it ? What pixel per inch or pixel per meter value ? Try to remove it with PNGOUT (XN/NC can't ???).

BTW, PNG is a pixel based image format so the only "real" size is the size in pixels, the printing size can be any ...

http://www.libpng.org/pub/png/book/chap ... ch11.div.8
There is indeed no WinZIP under my rock.
User avatar
Peter2
XnThusiast
Posts: 1365
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: Width of PNG in XnView and Word

Post by Peter2 »

DOS386 wrote:...The physical size refers, if ever, to printing, not the screen ;-)...
Yes. The behaviour was based on the difference between "View - 100%" and "View - Real size". With "Real size" everything is OK.
DOS386 wrote:...But I don't get any physical size when saving a shot with XNVIEW ... how did you do ? :bug:...
You can see it in ....
- Browser mode in the status bar
- Browser mode, "Detail list" plus selected column "Print size"
- in Viewer mode when you "select all" in the status bar

Peter
XnViewMP <Current version> German, XnConvert <Current version>, Win 10
Post Reply