Jump to content

File Saved as a PNG Normally, But doesn't open and then turns into .PDN, corrupted?


Recommended Posts

Recently I finished a 4-5 hour project for myself and saved it as a PNG. But when I tried to reopen it, it doesn't work, nor does it work on photo app. Both paint.net and photos are updated, but later, its now a pdn image, still doesn't open, it gives this error below. If anyone can tell me what happened, I'd really appreciate it, same for fixes too.

 

Exception:

PaintDotNet.Imaging.ComponentNotFoundException (0x88982F50): Exception of type 'PaintDotNet.Imaging.ComponentNotFoundException' was thrown.
   at PaintDotNet.Interop.ExceptionFactory.ThrowError(Int32 hr, String message, Exception innerEx) in D:\src\pdn\src\Windows\Interop\ExceptionFactory.cs:line 157
   at PaintDotNet.Interop.ExceptionTunnel.ThrowOnErrorCold(HRESULT hr, Exception exception) in D:\src\pdn\src\Windows\Interop\ExceptionTunnel.cs:line 73
   at PaintDotNet.Imaging.WICImagingFactory.CreateDecoderFromStream(Stream stream, BitmapDecodeOptions metadataOptions, Nullable`1& containerFormat, Nullable`1& preferredVendor) in D:\src\pdn\src\Windows\Imaging\WICImagingFactory.cs:line 414
   at PaintDotNet.Data.WicFileTypeHelpers.Load(Stream input, Nullable`1& forcedContainerFormat, Nullable`1& preferredVendor, IMetadataTranscoder metadataTranscoder) in D:\src\pdn\src\PaintDotNet\Data\WicFileTypeHelpers.cs:line 69
   at PaintDotNet.Data.PngFileType.OnLoad(Stream input) in D:\src\pdn\src\PaintDotNet\Data\PngFileType.cs:line 169
   at PaintDotNet.FileType.Load(Stream input) in D:\src\pdn\src\Data\FileType.cs:line 491
   at PaintDotNet.Functional.Func.Eval[T1,TRet](Func`2 f, T1 arg1) in D:\src\pdn\src\Fundamentals\Functional\Func.cs:line 60

Diagnostics:

Application                                          paint.net 5.0.9 (Stable 5.9.8621.1636)
Build Date                                           August 9, 2023
Install type                                         Classic

Language:                                            en-US
DPI                                                  120 (1.25x scale)
UI/Canvas GPU                                        True
Rendering GPU                                        🚀 Performance (AMD Radeon(TM) Graphics)
Remote session                                       False
Animations                                           True
Translucent windows                                  True
Windows Ink                                          True

OS                                                   Windows 11 Home x64 (10.0.22621.0)
Runtime                                              .NET 7.0.10 x64

Physical Memory                                      6,094 MB (797 MB free)
Virtual Memory                                       133,948,213 MB free
Paging File                                          13,262 MB (5,212 MB free)

CPU                                                  AMD Ryzen 3 3250U with Radeon Graphics
    Speed                                            ~2595 MHz
    Cores / Threads                                  2 / 4
    Features                                         SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, AVX, AVX2

Video Card                                           AMD Radeon(TM) Graphics
    Hardware Acceleration                            Supported
    Dedicated Video RAM                              2,034 MB
    Dedicated System RAM                             0 MB
    Shared System RAM                                3,047 MB
    Vendor ID                                        0x1002
    Device ID                                        0x15D8
    Subsystem ID                                     0x1FCF1043
    Revision                                         196
    LUID                                             0x0000DE94
    Flags                                            AcgCompatible, SupportMonitoredFences, KeyedMutexConformance
    Graphics Preemption                              DmaBufferBoundary
    Compute Preemption                               DmaBufferBoundary
    Outputs                                          1
    Feature Level                                    Level_12_1
    Features                                         Doubles, ComputeShadersEtc
    DXGI Formats                                     A8_UNorm, B8G8R8A8_UNorm, R16G16B16A16_UNorm, R16G16B16A16_Float, R32G32B32A32_Float
    Buffer Precisions                                UInt8Normalized, UInt8NormalizedSrgb, UInt16Normalized, Float16, Float32
    Maximum Bitmap Size                              16384

Video Card                                           Microsoft Basic Render Driver
    Hardware Acceleration                            N/A
    Dedicated Video RAM                              0 MB
    Dedicated System RAM                             0 MB
    Shared System RAM                                3,047 MB
    Vendor ID                                        0x1414
    Device ID                                        0x008C
    Subsystem ID                                     0x00000000
    Revision                                         0
    LUID                                             0x0000EB49
    Flags                                            Software, AcgCompatible, SupportMonitoredFences, KeyedMutexConformance
    Graphics Preemption                              InstructionBoundary
    Compute Preemption                               InstructionBoundary
    Outputs                                          0
    Feature Level                                    Level_12_1
    Features                                         Doubles, ComputeShadersEtc
    DXGI Formats                                     A8_UNorm, B8G8R8A8_UNorm, R16G16B16A16_UNorm, R16G16B16A16_Float, R32G32B32A32_Float
    Buffer Precisions                                UInt8Normalized, UInt8NormalizedSrgb, UInt16Normalized, Float16, Float32
    Maximum Bitmap Size                              8388608

Managed assemblies                                   125

Link to comment
Share on other sites

Odds are the file extension is not aligned to the type of encoding used. Try this plugin to see if it will identify the file type.

 

 

Link to comment
Share on other sites

3 hours ago, Saikoupathic said:

saved it as a PNG. But when I tried to reopen it, it doesn't work
...
but later, its now a pdn image, still doesn't open


As written, your question does not make sense.

How did your png file later become a pdn file?

There is some information about the steps you carried out that you have not told us.
 


As EER hints, you have most likely given the file the wrong file type, probably by typing it when saving or when renaming the file.
 

Link to comment
Share on other sites

It sounds like you saved your work in PDN format (or another format) but with PNG extension (or changed it to PNG afterwards.)

 

Try changing the extension to PDN then open.

 

Paint.NET chooses the correct decoder based on the file extension. PNG is giving the wrong hint in this case.

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.

×
×
  • Create New...