We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
DEBUG
RELEASE
Following this sample: https://docs.sixlabors.com/articles/imagesharp/memorymanagement.html#enforcing-contiguous-buffers but instead loading an image file
using (Image<Rgba32> image = Image.Load<Rgba32>(customConfig, "big.png"))
will result in discontigous memory being used.
This is probably caused by https://github.com/SixLabors/ImageSharp/blob/master/src/ImageSharp/Image.Decode.cs#L41 not passing configuration.PreferContiguousImageBuffers to Allocate2D. Adding this extra parameter fixes the issue on my use case.
configuration.PreferContiguousImageBuffers
I did not open a PR for that, since I am not familiar with ImageSharps internal workings and am not sure if this issue also exists elsewhere.
https://github.com/roeyskoe/ImageSharpContiguous
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Prerequisites
DEBUG
andRELEASE
modeDescription
Following this sample: https://docs.sixlabors.com/articles/imagesharp/memorymanagement.html#enforcing-contiguous-buffers
but instead loading an image file
will result in discontigous memory being used.
This is probably caused by https://github.com/SixLabors/ImageSharp/blob/master/src/ImageSharp/Image.Decode.cs#L41
not passing
configuration.PreferContiguousImageBuffers
to Allocate2D. Adding this extra parameter fixes the issue on my use case.I did not open a PR for that, since I am not familiar with ImageSharps internal workings and am not sure if this issue also exists elsewhere.
Steps to Reproduce
https://github.com/roeyskoe/ImageSharpContiguous
System Configuration
The text was updated successfully, but these errors were encountered: