Jump to content

Error Opening .PNG Files


Recommended Posts

Hi!

I'm new to Paint.Net and have tried searching but I guess I don't really understand what I'm looking for.

I'm trying to open a picture to edit, but I get an error ("There was an error opening the file")

I click "More Details" and this is what it says:

Application version: paint.net 4.2.9

WebPFileType.WebPException: The file is not a valid WebP Image.
   at WebPFileType.WebPFile.Load(Byte[] webpBytes)
   at WebPFileType.WebPFileType.GetOrientedDocument(Byte[] bytes, ExifValueCollection& exifMetadata)
   at WebPFileType.WebPFileType.OnLoad(Stream input)
   at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src\Data\FileType.cs:line 522
   at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src\Data\FileType.cs:line 522
   at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src\Base\Functional\Func.cs:line 158

 

Thank you for any help!

Liz

Link to post
Share on other sites

Hello @Lizasaur and Welcome to the Forum :)

 

I think you saved the image you are trying to import in the wrong format.  If you can go back to the image you want and save it as a .jpeg or .png then you should not have trouble uploading it.

30b8T8B.gif

How I made Jennifer & Halle in Paint.net

My Gallery | My Deviant Art

"Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon.

 
Link to post
Share on other sites
6 hours ago, toe_head2001 said:

I'm going to take guess here, and say you have file extensions hidden in Windows Explorer.

So, your image file is probably named something like MyImage.PNG.WEBP,  but the .WEBP part in hidden.

I opened up properties and you're right! It is a .webp

Does that mean I can't open it? Or is there a trick to getting it to work?

Thank you so much :D

Link to post
Share on other sites
38 minutes ago, Lizasaur said:

I opened up properties and you're right! It is a .webp

Does that mean I can't open it? Or is there a trick to getting it to work?

Thank you so much :D

If it's a real WebP file you should be able to open it with Paint.net natively I think. You could also try to install this extension for Windows 10, it lets you open WebP files natively in the "Photos" app:

If it's not real WebP, maybe a PNG, remove the ".webp" in the end of the file name so it only says "<name>.png", then try open it with Paint.NET or Windows 10 built in "Photos" app.

Edited by olavrb
Link to post
Share on other sites

It appears that Windows 10 has the ability to open and write WebP files since Build 17692.1004.

(I think that you have to install the Microsoft store WebP extension codec)


I just looked at Microsoft's Paint on my computer (running  version 1909 build 18363.657) and it can handle WebP files,

so Paint.NET running on a current version of Windows 10 should do the same.

 

 

Edited by HyReZ


 

Link to post
Share on other sites

Paint.NET's WebP support is via @null54's WebP FileType plugin, which has been bundled with the app since the 4.2.5 release. WIC isn't used, so @HyReZ's comments about Win10 aren't relevant. Other file types, such as HEIC and AVIF, do go through WIC and do require Win8 or Win10 with the appropriate codec installation from the Store.

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
3 hours ago, Lizasaur said:

I took the .png out of the file name and the error is still happening 😕

 

Try removing the .webp extension from the filename, it may be a png file with a .webp file extension.

 

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 post
Share on other sites

The definitive paint.net tool for identifying mis-named image files is this one: What's It?

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