feat: .pixels return type changed to Uint8ClampedArray#304
Open
feat: .pixels return type changed to Uint8ClampedArray#304
.pixels return type changed to Uint8ClampedArray#304Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
yisibl
commented
Feb 28, 2024
| asPng(): Buffer | ||
| /** Get the RGBA pixels of the image */ | ||
| get pixels(): Buffer | ||
| get pixels(): Uint8ClampedArray |
Member
Author
There was a problem hiding this comment.
@Brooooooklyn napi-rs 可以直接生成 readonly pixels: Uint8ClampedArray 吗?
f71a9a6 to
09bb8d0
Compare
yisibl
commented
Feb 28, 2024
| } | ||
| } | ||
| break | ||
| case 's390x': |
15dd771 to
34c1451
Compare
xamgore
reviewed
Feb 26, 2026
|
|
||
| import { jimpToRgbaPixels } from './helper' | ||
|
|
||
| test.skip('Use href to load a JPG image without alpha', async (t) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #300
Now you can pass the resvg-js rendered pixels to the canvas in the browser via
new ImageData().