Lizasaur

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

Share this post


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.

Share this post


Link to post
Share on other sites

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.

  • Like 1

Share this post


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

Share this post


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

Share this post


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

Share this post


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.

Share this post


Link to post
Share on other sites

I have Windows 8.1 and Paint is 4.2.9.... so it should be included and able to open these webp images, right?

 

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

Share this post


Link to post
Share on other sites

I just opened a. webp image and it opened up fine v 4.2.10.

 

Do your properties of your image look like this?

 

webp.png

Share this post


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.

 

Share this post


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.