Jump to content
Paint.NET 5.1 is now available! ×

Feature Request: Gamma Corrected Image Resizing


Go to solution Solved by Rick Brewster,

Recommended Posts

Posted

So I've been using paint.net for textures for Sonic game mods and I want to use the program to create mipmaps for those textures, as the new Adaptive resizing filter has caught my interest. However, using paint.net to create mipmaps is unideal currently due to the lack of gamma corrected image resizing. This is something that is attainable with NVIDIA's Texture Tools Exporter, and its effects are noticeable in textures that have halftones, like the three attached images shown in sequential order.

 image.png.71c129e675a01f335561798d3fb98c99.png
This is the source image, showing half tones of alternating black & white rows, alongside two boxes with text that also has the half tones. The 128 text should appear brighter than its surrounding square while the 187 text should be noticeable if you look close enough but not as legible as the 128.

image.png.b6b717df03beb4e4dd0f1f93b3d477fb.png
This is what the Adaptive resizing filter outputs when halving the resolution of the source image. Unlike the source image, the 187 text is perfectly readable now, while the 128 text is now the one that's far less readable. To my eyes, the 187 text also appears darker with this image compared to the harder to see but brighter 187 text in the source.

 

image.png.a789e66b090c3fc76a840f5ea1f76515.png

Finally, here's what the NVIDIA Texture Tools Exporter outputs as a mip with gamma correction enabled and the Kaiser filter type. The 128 text is readable and the 187 text isn't, much like the source image.

 

I would also reccommend making gamma-corrected resizing a toggle, much like the adjustable gamma exponent with the new Bokeh. That way things that shouldn't be gamma corrected whlie being resized, like normal maps, can still be correcttly resized.

 

Any feedback regarding this request or this post would be greatly appreciated, as this is my first post on this forum. I do hope that you take this request into consideration. Have a good day!

Posted

This is something I've been wanting to add for awhile, and I have been thinking about including it in a 5.0.x update sometime this year.

 

It was only relatively recently that this became practical to implement, but improvements and changes to the resamplers have made it very possible.

 

Also, for mipmaps, I do not recommend using "Adaptive (Best Quality)", which is being renamed to "Adaptive (Sharp)" in the 5.0.4 update. Once the 5.0.4 update is released you will want to use either Bicubic (the new default) or Fant.

 

cc @null54 since this is also related to DDS and its mipmap generation (see first sentence of OP's post)

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

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

forumSig_bmwE60.jpg

  • 2 weeks later...
  • Solution
Posted

This will be making it in for the upcoming 5.0.4 update, for both Image->Resize and the Move Selected Pixels tool. In addition, gamma correction will be used for thumbnails, the canvas itself (important when zooming!).

 

5.0.3 versus the latest build of 5.0.4. Due to scaling by your browser, these may not look quite correct, but I assure you they are :)

 

Notice that in 5.0.4 there is a new toolbar button -- this configures the gamma mode between corrected and uncorrected gamma. It defaults to gamma corrected.

 

image.png

image.png

  • Thanks 1
  • Hooray 1

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

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

forumSig_bmwE60.jpg

  • 2 weeks later...

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