Jump to content

RC2 - Image resolution


Recommended Posts

The image's resolution is aways set to 96dpi when saving an image, not to the value given in the image resize dialog.

Recreate/Test:-

open picture

change the resolution

save (as..) the picture

import picture into quark - note in the image browser the image res is set to 96dpi

open file in good old paint - ctrl+E image attributes again note the res is set to 96dpi

Link to comment
Share on other sites

I don't know what Quark is, and I wouldn't trust Paint.

Things work fine here using the following test:

1) Open a JPEG image in Paint.NET

2) Change its DPI using Image->Resize

3) Save it

4) Check its DPI settings from within Windows Explorer (right click -> Properties -> Summary, then click "Advanced" button if necessary)

5) Re-load the image in Paint.NET.

6) Verify the DPI settings in Image->Resize.

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

import picture into quark - note in the image browser the image res is set to 96dpi

You say you are importing the image...this process probably changes the resolution in "Quark". Try simply opening the image. If the problem persists, stop using "Quark." Paint.NET shouldn't be playing with your resolutions for opening/saving.

However, I have noticed that when I have two Paint.NET processes open, and I copy something from one window's document that is at some resolution to the other window's document which is at a different resolution, the difference in resolution isn't dealt with, and the image is pasted in at the same pixel width/height as it was when I copied it from the first window. This is technically proper behaviour, but it has been confusing me quite a bit in the last couple days as I have been trying to print several images at as similar a scale as possible. The solution for these problems, however, is just to be careful while resizing and copying to be sure everything is at the same resolution.

-John

Link to comment
Share on other sites

However, I have noticed that when I have two Paint.NET processes open, and I copy something from one window's document that is at some resolution to the other window's document which is at a different resolution, the difference in resolution isn't dealt with

Interesting, I never even thought about that. We just copy pixels without dealing with the resolution. Interesting idea.

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

I tried this.

I found a .jpg of the announcement of the wake for Microsoft Exchange Server 5.5, which according to Irfanview has a DPI of 72.

When I open it in PDN, Resize dialog displays 96 DPI. If I save it as is, and then open it in Irfanview, it reads 96 DPI.

If I resize it to a different, this time 11 DPCM, Irfanview still reads it at 96 DPI. But the EXIF info on that file, reads XResolution & YResolution both at 11 and ResolutionUnit is Centimeter. PDN also sees that it's 11 DPCM if I have changed it to something other than 96 DPI.

I can put them up if necessary.

sig.jpg.7f312affa740bae49243c4439bc4a244.jpg

Link to comment
Share on other sites

Well it's too late to do anything for 2.6, but I"ll file a bug for the next release.

Anyway, what I would need is two JPEGs: one with the DPI set to something like 100, the other with it set to 80. That'll let me know which EXIF tag is being used for this.

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

  • 1 month later...

I have a similar problem. If this turns out to be a different problem, I would appreciate it if an admin would make this a new thread.

After scanning in an image (400 dpi, 2.66"x5.35") and saving it as a PNG, when I load the PNG in Paint .NET the image size and DPI are wrecked and after I use the resize tool in Paint .NET, if I copy-and-paste to Microsoft Word (or probably any other program), the image is ~8.5"x11".

My System Uses...

WinXP Pro SP2

2GB RAM

P4 with HT

Scanner with a TWAIN driver (doesn't support WIA)

My System Has...

Paint .NET

.NET Framework 1.1

.NET Framework 2.0

Corel PhotoHouse 3

Steps to Reproduce:

Get the Image:

1. Scan in an image (I use Corel PhotoHouse for this.) at full color, 400 dpi

2. Save as PNG with interlacing

3. Exit Corel PhotoHouse

Paint .NET:

1. Open the image in Paint .NET

2. Go to Image | Resize

1st Bug: The resolution is 96dpi and the image size is 11.08"x22.29"

3. Change the resolution to 400 dpi.

The image size shrinks to 2.66"x5.35".

4. Click OK.

Copy to Microsoft Word

1. CTRL+A in Paint .NET

2. CTRL+C in Paint .NET

3. Run Microsoft Word

4. Paste into Microsoft Word.

2nd Bug: Giant image

I've uploaded the original scan to http://zcp.amael.com/zian/Untitled.png.

By the way, it's from Biology by Campbell, Reese, and Mitchell.

Link to comment
Share on other sites

There's a bug in GDI+ with respect to loading DPI from non-JPG images. It does not work. Therefore, it does not work in Paint.NET. We have a bug on this.

If you want to preserve DPI you will need to use JPG or PDN for the time being.

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

  • 1 month later...
There's a bug in GDI+ with respect to loading DPI from non-JPG images. It does not work. Therefore, it does not work in Paint.NET. We have a bug on this.

If you want to preserve DPI you will need to use JPG or PDN for the time being.

So does this mean that the file is actually 96 DPI or it is just being read as 96 DPI?

Here's my scenario with v2.62. I create a new image at 350 DPI, use the text tool and type some text, then save as TIF. Using the Windows Explorer to check properties shows it as 96 DPI. Using resize in PDN lists 96 as the DPI.

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...