-
-
Notifications
You must be signed in to change notification settings - Fork 855
New issue
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
Image.Save ArgumentOutOfRangeException when resizing image #925
Comments
If I pass the raw image into each resize operation rather than chaining the resize result down, everything works. But, I think you guys might want to know about this at any rate. |
Thanks for raising this @chrisdrobison If you update to the latest build from MyGet you won't have this issue anymore. We fixed it a while back. However I do recommend some changes to your code as it is inefficient as it stands. You are much better loading the stream once and resizing that input image multiple times cloning the original using I wouldn't wrap the synchronous ImageSharp methods in an allocating |
Thanks for the feedback. Do you have a timeline for releasing that to Nuget? |
Not yet. ASAP though, I'm desperate to get it shipped. |
Prerequisites
DEBUG
andRELEASE
modeDescription
We are resizing an image 5 times and passing one resized stream to the next. We are getting the following error:
Value 255 must be greater than or equal to 0 and less than or equal to 2.
Parameter name: densityUnits
Steps to Reproduce
System Configuration
The text was updated successfully, but these errors were encountered: