Jump to content

Paint.Net doesn't handle scaling properly (gamma error)


Ilko

Recommended Posts

Since I do fansub, I work with avisynth+ and came to something very interesting. Most of softwares in the world don't handle scaling properly (even very expensive softs), including PDN. It seems to be an error of gamma interpretation.

 

If you try to resize this image :

gamma_dalai_lama_gray.jpg

 

You'll get this result, or worse :

gamma_dalai_lama_gray_scaled.jpg

 

Also, try scaling this one to 1:2 :

gamma-1.0-or-2.2.png

 

 

Here is the source, a full detailed article on how it works and possible solutions :

http://www.ericbrasseur.org/gamma.html

 

Link to comment
Share on other sites

Yeah, this is verrrrrrrrry old news. Fixing this requires an enormous amount of work -- likely inspecting and recoding every single piece of rendering code within the app. Highly unlikely it'll happen. (Just trying to set reasonable expectations ...)

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

55 minutes ago, Ilko said:

But I'm wondering, it's possible to write a resize plugin that will do it correctly, right ?

 

No, plugins aren't able to change the canvas size.

(September 25th, 2023)  Sorry about any broken images in my posts. I am aware of the issue.

bp-sig.png
My Gallery  |  My Plugin Pack

Layman's Guide to CodeLab

Link to comment
Share on other sites

A plugin could resize down, leaving a blank/colored margin. You'd have to manually crop that.

 

Resizing up will run into the problem that the larger image will be cropped at the current canvas edge unless you expand the canvas before running the plugin ?

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