Jump to content

paint.net file extension vs. content


Recommended Posts

By mistake I figured out that the rule 'paint.net does only load an image if the image filename has the correct extension' is not always true.

 

Renaming a .jpg to .bmp still loads the file. I guess this is the case because both extension use WIC to decode the file and WIC identifies the file by content and not by extension.

 

We will not tell this users 😉

 

midoras signature.gif

Link to comment
Share on other sites

This is how WIC does things, if you allow it to.

 

When I originally converted over everything to WIC in PDN 4.2, I did not enable this. I then got a lot of "bug reports" from users that they couldn't open various files. As it turns out there is A LOT of software out there that does things like saving PNGs as BMPs, or JPGs as PNGs, etc. So I just reenabled it and everyone's happier that it just works.

 

However, PDN won't know how to import the metadata (EXIF etc.) in many of these cases, as it still binds the metadata handling with the FileType which is based on the file extension.

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

That's a little bit strange because the Windows FileExplorer shows it like the third image. And I guess the the FileExplorer uses also WIC. Maybe icm is not enabled. paint.net 4.2.16 and the 4.3 beta shows it like the second one, which seems to be fine. And the What's it plugin identifies it as jpeg 😉

 

I have to correct the first sentence. It only gets the green touch on my second monitor on the main one it looks fine.

midoras signature.gif

Link to comment
Share on other sites

My File Explorer shows like the first image but desktop thumbnail shows like the second image. If I increase the thumbnail size one tick it turns to first one.

 

I'm on Windows 10 LTSC 1809 with latest updates installed. Middle image is the correct one. Which Windows build version are you using? @midora

Link to comment
Share on other sites

Win 10 Home 21H1 build 19043.1237. I remember that I changed the colors on the second screen once to be a little bit warmer. This explains the difference. No difference in paint.net compared to the FileExplorer.

midoras signature.gif

Link to comment
Share on other sites

I've just checked this on my friend's Windows 10 build 1607 and it shows correctly. Chrome still shows the same brighter colors which has nothing to do with WIC. Something might be broken on my Windows then. I'll check this.

 

Edit:

It turns out my default device profile has been changed to something I don't recognize. Switched back to sRGB and it shows correctly now.

Edited by otuncelli
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...