You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.4
Other ImageSharp packages and versions
3.1.4
Environment (Operating system, version and so on)
Windows 11, Linux Ubuntu
.NET Framework version
.net6
Description
This is my picture, in here width = 4282pixels, height = 5712 pixels.
But In ImageSharp showing wrong
Steps to Reproduce
using (var imageSharp = SixLabors.ImageSharp.Image.Load(image.OpenReadStream()))
{
var width = imageSharp.Width;
var height = imageSharp.Height;
// Check image ratio
double allowedRatio = 0.01;
var ratio = (double) width / height;
if (Math.Abs(ratio - ((double)_ratioX / _ratioY)) >= allowedRatio)
{
return new ValidationResult($"Image ratio should be {_ratioX}:{_ratioY}");
}
}
Images
The text was updated successfully, but these errors were encountered:
I should only get width and height of image, how can i get via this library
The height and width of the image are the ones reported by the library. This is exactly the same as other libraries. If you want orientation dimensions you will have to check the image metadata.
Prerequisites
DEBUG
andRELEASE
modeImageSharp version
3.1.4
Other ImageSharp packages and versions
3.1.4
Environment (Operating system, version and so on)
Windows 11, Linux Ubuntu
.NET Framework version
.net6
Description
This is my picture, in here width = 4282pixels, height = 5712 pixels.
But In ImageSharp showing wrong
Steps to Reproduce
using (var imageSharp = SixLabors.ImageSharp.Image.Load(image.OpenReadStream()))
{
var width = imageSharp.Width;
var height = imageSharp.Height;
}
Images
The text was updated successfully, but these errors were encountered: