'Get/set the resolution of an image file using C# net5.0 but without System.Drawing.Common?

Using System.Drawing, it is easy to get the HorizontalResolution and VerticalResolution of an image file.

In .NET 6, System.Drawing.common will be disabled (by default) and unsupported in other platform than Windows.

I try to get an equivalent with another framework. Microsoft recommends to migrate to SkiaSharp or ImageSharp.

I need the support of Jpeg, Png, Bmp and Tiff (single and multi)

In SkiaSharp, there is no support of image resolution (read and write)...

In ImageSharp, they doesn't support Tiff files

How can I get/set the resolution of those 4 images formats in a net5.0 (and soon net6.0) multiplatform (Win, Mac and Linux) app ?



Solution 1:[1]

ImageSharp V2 is out and supports TIFF, see NuGet

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ynse01