Jump to content

PNG file drops quality when copypasted


Vovan29
 Share

Recommended Posts

This is a very odd bug - some .png files get .jpg-like compression (and sometimes drop transparency) while copied and pasted to PaintDotNet

 

Example: https://static.wikia.nocookie.net/minecraft_gamepedia/images/0/0c/Launcher_Alex_Texture.png/revision/latest?cb=20200819175304

 

Here's this picture copied and pasted from Mozilla Firefox 87 on Windows 10 (20H2) to Paint and PaintDotNet:

y.thumb.png.0dda933e1cd63a2bd0ce1526056843c9.png

As you can see, picture looks good in Paint (it has black background since Paint doesn't support transparency), but gets oddly compressed in PaintDotNet

Link to comment
Share on other sites

My Firefox is up-to-date, v.85. I don't know where to get v.87.

 

I downloaded the image and pasted it in Paint and PDN. I resized by 300% at default settings for clarity, placed a black background in the PDN copy for comparison. See the results below.

S8UJsHc.png

I cannot see any drop in quality. If you can, feel free to repeat the same, only this time resize in PDN using "nearest neighbour".

TBH, I cannot see any drop in quality even in the images posted by the OP.

 

PS.: For anyone wanting to try, the correct link for the image is this

https://static.wikia.nocookie.net/minecraft_gamepedia/images/0/0c/Launcher_Alex_Texture.png

 

Xkds4Lh.png

Link to comment
Share on other sites

2 minutes ago, Djisves said:

I don't know where to get v.87.

 

Firefox Nightly can be downloaded near the bottom of this page: https://www.mozilla.org/en-US/firefox/channel/desktop/

 

3 minutes ago, Djisves said:

TBH, I cannot see any drop in quality ... in the images posted by the OP.

 

There is definitely a difference between the two in the screenshot. It's especially noticeable in the regions that are solid colors.

  • Upvote 1
Link to comment
Share on other sites

1 hour ago, Djisves said:

My Firefox is up-to-date, v.85. I don't know where to get v.87.

 

I downloaded the image and pasted it in Paint and PDN. I resized by 300% at default settings for clarity, placed a black background in the PDN copy for comparison. See the results below.

S8UJsHc.png

I cannot see any drop in quality. If you can, feel free to repeat the same, only this time resize in PDN using "nearest neighbour".

TBH, I cannot see any drop in quality even in the images posted by the OP.

 

PS.: For anyone wanting to try, the correct link for the image is this



https://static.wikia.nocookie.net/minecraft_gamepedia/images/0/0c/Launcher_Alex_Texture.png

 

 

Yes, for some reason these 2 pictures are the same. Link without additional symbols copies only compressed version, but if you open it through this link

https://minecraft.gamepedia.com/File:Launcher_Alex_Texture.png

(left click on the preview to open the puciture), it will be bugged

 

The bug is also presented on Firefox 85, so it's probably related to the way Firefox copies pictures (Microsoft Edge copies the picture without any bugs)

 

Edited by Vovan29
Link to comment
Share on other sites

39 minutes ago, toe_head2001 said:

You also need to install Paint.NET v4.2.15; we don't offer support for old versions.

 

And it appears you're using custom theming (WindowBlinds or the like) on Windows 10; that can also some issues with Paint.NET.

 

OK, I updated my PDN to 4.2.15 (it seems it was released a few minutes after my post), but the bug is still there

 

It's official theme called "Aero Lite". It doesn't affects PDN since I remember I also had this bug when I was using default theme.

Link to comment
Share on other sites

38 minutes ago, Vovan29 said:

Yes, for some reason these 2 pictures are the same. Link without additional symbols copies only compressed version, but if you open it through this link

https://minecraft.gamepedia.com/File:Launcher_Alex_Texture.png

(click on the picture to open it), it will be bugged

 

There is no bug here.  These are two different image files.

 

j3gI3eK.png

Link to comment
Share on other sites

3 minutes ago, toe_head2001 said:

 

There is no bug here.  These are two different image files.

 

j3gI3eK.png

Yes, preview picture is not bugged.

 

In my previous reply I meant click it with left mouse button (it opens a link with bugged png, which also can be found in the original post)

Link to comment
Share on other sites

39 minutes ago, Vovan29 said:

In my previous reply I meant click it with left mouse button (it opens a link with bugged png, which also can be found in the original post)

 

The bugged "PNG" is actually a WebP file that is encoded with lossy compression.

 

 

PdnSig.png

Plugin Pack | PSFilterPdn | Content Aware Fill | G'MICPaint Shop Pro Filetype | RAW Filetype | WebP Filetype

The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait

 

Link to comment
Share on other sites

 

Quote

 

1235524887_.png.23342edad38f2cf8acc16f5b6c6b4617.png

 

Here's Windows XP's Paint, it also pastes it just fine.

 

But why PDN can't? does this mean it recognizes it as WebP and ignores PNG becuase of this? And paint is just too old to even recognoze what .webp is so it pastes image correctly?

 

 

Edited by Vovan29
:D
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.

 Share

×
×
  • Create New...