-
-
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
Add exception type and update xml docs. #1179
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1179 +/- ##
=======================================
Coverage 82.47% 82.47%
=======================================
Files 688 690 +2
Lines 29891 29916 +25
Branches 3378 3379 +1
=======================================
+ Hits 24653 24674 +21
- Misses 4538 4541 +3
- Partials 700 701 +1
Continue to review full report at Codecov.
|
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.
Great job! Will have another one in a few days.
/// <exception cref="NotSupportedException">Thrown if the stream is not readable.</exception> | ||
/// <exception cref="ArgumentNullException">The configuration is null.</exception> | ||
/// <exception cref="ArgumentNullException">The data is null.</exception> | ||
/// <exception cref="NotSupportedException">The data is not readable.</exception> | ||
/// <returns> | ||
/// The <see cref="IImageInfo"/> or null if suitable info detector is not found. | ||
/// </returns> | ||
public static IImageInfo Identify(Configuration configuration, byte[] data, out IImageFormat format) |
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.
Can decoders throw InvalidImageContentException
in Identify
?
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.
Yeah, they can hit a bad value in the image header.
Quick as possible if you can. I'm hoping to ship in less than a week. |
@JimBobSquarePants there are still some places left with a For example
Was this intentional or should we change those, too? |
@brianpopow I missed that. Yeah we should update. |
@JimBobSquarePants ok i will do that |
Prerequisites
Description
InvalidImageContentException
type.Fixes. #1110