Prerequisites
ImageSharp version
3.0.2
Other ImageSharp packages and versions
3.0.1
Environment (Operating system, version and so on)
aks and windows 2010
.NET Framework version
6
Description
We are using Image sharp to convert the tiff images to png, as part of that process we are using below code but it is throwing the error for for specific tiff files but file looks vaild tiff images only.
When try to load tiff images using the below code through the error "The number of samples in the TIFF BitsPerSample entry is not supported."
using (MemoryStream loadImage = new MemoryStream(byteArray))
{
image = Image.Load(loadImage);
}
So can you suggest the possible fix or work around for this issue.
I am login the issue as behalf of RM and RM have a license for this library.
Steps to Reproduce
- Use the attached sample tiff images.
- Use the below code to load the tiff images
using (MemoryStream loadImage = new MemoryStream(byteArray))
{
image = Image.Load(loadImage);
}
Images
SampleTiffs.zip
Prerequisites
DEBUGandRELEASEmodeImageSharp version
3.0.2
Other ImageSharp packages and versions
3.0.1
Environment (Operating system, version and so on)
aks and windows 2010
.NET Framework version
6
Description
We are using Image sharp to convert the tiff images to png, as part of that process we are using below code but it is throwing the error for for specific tiff files but file looks vaild tiff images only.
When try to load tiff images using the below code through the error "The number of samples in the TIFF BitsPerSample entry is not supported."
using (MemoryStream loadImage = new MemoryStream(byteArray))
{
image = Image.Load(loadImage);
}
So can you suggest the possible fix or work around for this issue.
I am login the issue as behalf of RM and RM have a license for this library.
Steps to Reproduce
using (MemoryStream loadImage = new MemoryStream(byteArray))
{
image = Image.Load(loadImage);
}
Images
SampleTiffs.zip