Skip to content

Saving TIFF files to a different format produces scan line image #2877

@aevitas

Description

@aevitas

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am running the latest version of ImageSharp
  • I have verified if the problem exist in both DEBUG and RELEASE mode
  • I have searched open and closed issues to ensure it has not already been reported

ImageSharp version

3.1.6

Other ImageSharp packages and versions

N/A

Environment (Operating system, version and so on)

OSX ARM, M1, Rider IDE, .NET 9

.NET Framework version

.NET 9

Description

When loading the following TIFF image with ImageSharp, and subsequently saving it to a different format, an image containing exclusively noisy scan lines is produced

Original image:

Image

ImageSharp output:

Image

Steps to Reproduce

The following code reproduces this issue when used with the attached TIFF file and ImageSharp 3.1.6:

var b = Image.Load(tiff.FullName);
b.SaveAsJpeg(Path.Combine(tilesDir.FullName, $"{tileName}-imagesharp.jpg"));

4-7.tif.zip

Images

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions