-
Notifications
You must be signed in to change notification settings - Fork 6k
Add a comment in Image.toByteData to limit more encoders #29962
Add a comment in Image.toByteData to limit more encoders #29962
Conversation
cc395ae to
0993530
Compare
4a4cae3 to
4c6f6ca
Compare
|
@dnfield @tvolkert @gaaclarke please take a short review 😄 thank u. |
dnfield
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.
I think this has been discussed before. We would rather not have to ship additional encoders.
@dnfield Or I just added a single line comment for developers, guiding to use third-party image library? Otherwise the encoder is still continuing in issues page. |
4c6f6ca to
21da423
Compare
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
@dnfield I change the goal of this PR, please review again~ |
tvolkert
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.
This feels more appropriate as a code comment and not a dartdoc comment.
21da423 to
16bc064
Compare
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 you still change these to // comments instead of /// comments? Thanks!
16bc064 to
ef0534c
Compare
Sorry, I forgot that. Should I put my |
dnfield
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
tvolkert
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
|
This pull request is not suitable for automatic merging in its current state.
|
And besides I found these issues and discussions are related to Image.toByteData:
I left documents and comments in the
toByteData()API, indicating that this API is convergent, and when developers need more image formats,please use the third-party image library.Pre-launch Checklist
writing and running engine tests.
///).