-
-
Notifications
You must be signed in to change notification settings - Fork 888
LoadAsync methods accepting string path. #1257
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1257 +/- ##
==========================================
+ Coverage 82.59% 82.60% +0.01%
==========================================
Files 697 697
Lines 30511 30521 +10
Branches 3444 3444
==========================================
+ Hits 25201 25213 +12
+ Misses 4605 4603 -2
Partials 705 705
Continue to review full report at Codecov.
|
…, IImageDecoder decoder).
|
I have added another unit test after this PR was created. Could the validation be run again? Or do I need to create a new PR? |
|
Ah lovely, thanks for this! Will review ASAP. Don’t worry about additional commits, the CI system will automatically rebuild and test each time including everything as part of the same PR. |
antonfirsov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after adding the missing test.
| /// <exception cref="UnknownImageFormatException">Image format not recognised.</exception> | ||
| /// <exception cref="InvalidImageContentException">Image contains invalid content.</exception> | ||
| /// <returns>A <see cref="Task{Image}"/> representing the asynchronous operation.</returns> | ||
| public static async Task<Image> LoadAsync(Configuration configuration, string path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is untested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@antonfirsov, this is now added.
|
@pekspro I'm not so much into async I/O, so I have no explanation, but perhaps you have one and are able to further optimize this beautiful library. My setup is Core 3.1 on Windows 8.1, my app is made with ASP.NET Core MVC.
The code: -Mine: Edit: code formatting |
|
@TedStryker thanks for reporting this finding! It would be really helpful if you could open an issue for this performance problem. Conversations under closed issues/PR-s get lost and forgotten too often. |
Prerequisites
Description
Add LoadAsync methods that accepts
string path.This solves #1255