Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 tasks done
aevitas opened this issue Jan 31, 2025 · 1 comment
Open
4 tasks done

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

aevitas opened this issue Jan 31, 2025 · 1 comment

Comments

@aevitas
Copy link

aevitas commented Jan 31, 2025

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

@brianpopow
Copy link
Collaborator

I think it has something to do with reversing the horizontal predictor and tiled images. Not sure yet howto fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants