Jump to content

Extremely low Bit Depth in paint.net 4.2.13


Recommended Posts

3 hours ago, Rick Brewster said:

Can you share an image that's causing these issues for you?

0.png.c6b1eda474d6a63f2cd6c078fc2906f0.png - Auto-detect

1.png.e01be5a51c7275dee24ea436956ac78c.png - 24/32-bit

 

It may be possible that this is only the case with more de-saturated colors, as I haven't had problems with more vibrant colors/images

  • Upvote 1
Link to post
Share on other sites

I can't reproduce any issue. Re-saving either of those images just results in the exact same image. Do you have the original image? I'm not sure if you shared the original or the saved ("low bit depth") version.

  • Like 1

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

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

forumSig_bmwE60.jpg

Link to post
Share on other sites
48 minutes ago, Rick Brewster said:

I can't reproduce any issue. Re-saving either of those images just results in the exact same image. Do you have the original image? I'm not sure if you shared the original or the saved ("low bit depth") version.

 

It seems easy to reproduce for me:

 

6 hours ago, Nyodex said:

1.png.e01be5a51c7275dee24ea436956ac78c.png - 24/32-bit

 

Open the 32 bit image. Save as... badfile.png (auto bit depth)

 

The resulting file will have been saved at bit depth: 4  (according to the Windows file properties)

 

If you open the original image and then load this new file as a layer... then switch the layer's blend mode to XOR, you'll see the files are not identical.

 

The differences are subtle, but they're there.  In this case, saving as PNG is NOT lossless.

 

(Differences seen in Paint.NET v4.2.13.)

 

  • Like 2

Click to play:
j.pngs.pngd.pnga.pngp.png
Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game

Link to post
Share on other sites
  • toe_head2001 changed the title to Extremely low Bit Depth in paint.net 4.2.13

Okay I've figured out the issue here. Palette generation was fine, quantization was fine ...... but then the down-conversion from 8-bit to 4-bit, even with a 4-bit palette, was broken. It's a bug in WIC (Windows Imaging Component), but I already had an 8-bit to 4-bit down-converter so I'm just using that code instead.

 

You can install this build of v4.2.14 which has the fix: https://www.getpaint.net/files/zip/test/paint.net.4.214.7530.38865.install.zip

 

  • Upvote 2

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

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

forumSig_bmwE60.jpg

Link to post
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...