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
When you load the raw image data with MakeDcrawMemoryImage() the image is rotated correctly when it is in portrait mode. When you retrieve the thumbnail of the image using ExportThumbnail() the image is not rotated.
So I searched for a way to identify whether or not the picture is in portrait mode and there is a variable which does tell you whether or not it is. That variable is RawContext.RawData.RawData.Sizes.Flip. Sadly though RawData seems to be inaccessible.
Is there any way to determine whether the image is in portrait mode or not or could you maybe change ExportThumbnail() to rotate the image automatically or expose the Flip variable?
Any help is greatly appreciated
The text was updated successfully, but these errors were encountered:
@Mysterium-Mystery My solution is introducing ImageSharp take over rest of things.
Here is my sample code:
using var context = RawContext.OpenFile("rawFileToOpen");
using var memoryImage = context.MakeDcrawMemoryImage();
using var sharpImage = Image.LoadPixelData(memoryImage.AsSpan(), memoryImage.Width, memoryImage.Height);
When you load the raw image data with MakeDcrawMemoryImage() the image is rotated correctly when it is in portrait mode. When you retrieve the thumbnail of the image using ExportThumbnail() the image is not rotated.
So I searched for a way to identify whether or not the picture is in portrait mode and there is a variable which does tell you whether or not it is. That variable is RawContext.RawData.RawData.Sizes.Flip. Sadly though RawData seems to be inaccessible.
Is there any way to determine whether the image is in portrait mode or not or could you maybe change ExportThumbnail() to rotate the image automatically or expose the Flip variable?
Any help is greatly appreciated
The text was updated successfully, but these errors were encountered: