PictureSharp.Tiff 0.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package PictureSharp.Tiff --version 0.3.0
                    
NuGet\Install-Package PictureSharp.Tiff -Version 0.3.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PictureSharp.Tiff" Version="0.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PictureSharp.Tiff" Version="0.3.0" />
                    
Directory.Packages.props
<PackageReference Include="PictureSharp.Tiff" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PictureSharp.Tiff --version 0.3.0
                    
#r "nuget: PictureSharp.Tiff, 0.3.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package PictureSharp.Tiff@0.3.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PictureSharp.Tiff&version=0.3.0
                    
Install as a Cake Addin
#tool nuget:?package=PictureSharp.Tiff&version=0.3.0
                    
Install as a Cake Tool

PictureSharp.Tiff

TIFF for PictureSharp, in 100% C#. No native dependencies.

The plugin reads the first full-resolution page of a classic TIFF or BigTIFF file: strips or tiles, contiguous or planar samples, no compression, PackBits, LZW, Deflate (predictors 2 and 3), JPEG and CCITT RLE/Group 3/Group 4; greyscale, palette, RGB, CMYK, YCbCr and 32-bit floating-point samples with optional alpha; ICC, XMP, EXIF/GPS, orientation and resolution. Old-style JPEG, JBIG, LZMA, Zstandard, WebP, CIE Lab and signed samples throw NotSupportedException. Requires PictureSharp 0.7.8 or later. See the 0.3.0 release notes and plan.md.

dotnet add package PictureSharp.Tiff

Use

Register the format once; Image.Load, Identify and ReadMetadata then handle .tif and .tiff (read only, so save to another format):

using PictureSharp;
using PictureSharp.Formats.Tiff;

ImageConfiguration.Default = ImageConfiguration.Default.ToBuilder().AddFormat(new TiffFormat()).Build();

ImageInfo info = Image.Identify("scan.tif");      // size and page count without decoding pixels
Console.WriteLine($"{info.Width}x{info.Height}, {info.ContainerItemCount} page(s)");

using var image = Image.Load("scan.tif");          // first full-resolution page; ICC, EXIF and XMP kept
image.Mutate(x => x.AutoOrient().Resize(1600, 0));
image.Save("scan.png");                            // format from the extension

A library can pass its own configuration through DecoderOptions.Configuration instead of changing the default.

License

MIT. Ported sources (libtiff, Pillow conversion rules) and their licenses are listed in THIRD-PARTY-NOTICES.txt.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.7.4 72 10/28/2026
0.7.3 86 10/26/2026
0.7.2 97 10/23/2026
0.7.1 94 10/22/2026
0.7.0 100 10/22/2026
0.6.0 87 10/22/2026
0.5.2 92 10/21/2026
0.5.1 98 10/21/2026
0.5.0 91 10/21/2026
0.4.0 104 10/21/2026
0.3.0 91 10/21/2026

0.3.0: the first release. Reads the first full-resolution page of TIFF and BigTIFF files: strips or tiles, none/PackBits/LZW/Deflate (predictors 2 and 3), JPEG and CCITT RLE/Group 3/Group 4; greyscale, palette, RGB, CMYK, YCbCr and 32-bit float with alpha; ICC, XMP, EXIF and orientation. Requires PictureSharp 0.7.8. Notes: https://github.com/art-ix/PictureSharp.Tiff/blob/v0.3.0/docs/releases/release-0.3.0.md