### ImageMagick version

13.1.0

### Operating system

Windows

### Operating system, version and so on

11

### Description

Getting tiff directory error for few base64 byte . for most of the files it working 

using (MagickImage imagemagick = new MagickImage(filepath))
            {
                imagemagick.Format = MagickFormat.Png;
                imagemagick.Write(outputpath);
            }


### Steps to Reproduce

Attched the code above 

### Images

_No response_
getting Tiff error on converting the issue 
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : getting Tiff error on converting the issue 
Issue date:

--- start body ---
### ImageMagick version

13.1.0

### Operating system

Windows

### Operating system, version and so on

11

### Description

Getting tiff directory error for few base64 byte . for most of the files it working 

using (MagickImage imagemagick = new MagickImage(filepath))
            {
                imagemagick.Format = MagickFormat.Png;
                imagemagick.Write(outputpath);
            }


### Steps to Reproduce

Attched the code above 

### Images

_No response_
--- end body ---
