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
Resizing the image causes it to rotate:
var image = Image.FromFile("wwwroot/imagesProduct/" + file.FileName); var scalefile = ImageResize.Scale(image, 280, 350); scalefile.SaveAs("wwwroot/ImageResize/" + file.FileName);
The text was updated successfully, but these errors were encountered:
Can you share the test image?
btw, it is better to re-write your code as below, so the code can dispose the image object automatically after the using statement:
using
using(var image = Image.FromFile("wwwroot/imagesProduct/" + file.FileName)) { image.Scale(280, 350) .SaveAs("wwwroot/ImageResize/" + file.FileName); }
Sorry, something went wrong.
this image
Thank you @mmo1383, I checked your image and it seems the code is ignoring the image rotation. I will publish a hotfix soon.
31ea530
fix is done in v4.1.0
thank you
LazZiya
No branches or pull requests
Resizing the image causes it to rotate:
The text was updated successfully, but these errors were encountered: