Jump to content

DPI problem..


redcat

Recommended Posts

quote from what I posted ( :oops: ) in the v2.72 announcement post :

...

* Fixed: DPI was not being saved or loaded correctly for file types other than PDN and JPEG

...

Hello, I'm just beginning to use Paint.NET, so can't say if there was problems with DPI with precedent versions, but I still have some with this one.. :-(

I use two existing files that was in PNG format. I load them (96pixel/inch) and resize them, but using pixel/cm (so, 37.8pixel/cm) and save them.

I then load those two files on different layers and save the file in PDN format. when I reload it and go to the resize function, the sizes are not the same and I got 5.85pixels/cm ..!??

is there still a problem or could I have done something wrong..?

[Edit] I manage to do what I wanted, by saving all my files to PDN format, before doing anything..

while doing the modifications on PNG format (set to 37.8pixels/cm), saving (still in PNG) and opening it again, I got 5.85pixels/cm. so don't think the problem is fixed, but I will work with PDN files now..

Link to comment
Share on other sites

Actually, looks like here are some easier repro steps:

1. Open up Paint.NET with the default blank image

2. Image -> Resize, and make sure the units are set to pixels/cm (it will recalculate it to be 37.8 pix/cm).

3. Save this image

4. Now load this image

It will show as having 5.85 pix/cm.

The reason this happens is apparently it is being saved as having 37.8 pixels per inch (the units aren't being saved right), but then on reloading it is converting from inches to centimeters again.

37.8 / 2.54 = 14.88

14.88 / 2.54 = 5.85

It's getting saved and converted in all sorts of weird ways. I'll see what can be done about this. In the meantime just save with pixels/inch instead of pixels/cm.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Oh, now I see why.

I'm using a function, CentimetersToInches(). Which works great when converting measurements, but not for ratios. So everything is getting converted in the wrong direction.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...