question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Render raw pixel data from ArrayBuffer source

See original GitHub issue

How hard would it be to support rendering raw ArrayBuffer pixel data like how CanvasRenderingContext2D works in browsers? I’d also love to help with this support if I can get pointed in the right direction! 😃

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sindresorhuscommented, May 16, 2018

@jozanza Sounds good to me.

@piranna Thoughts?


ImageData (or ImageData-like object) representing raw pixel colors and image dimensions.

There no concept of ImageData in Node.js, so it would only accept an ImageData-like object.

0reactions
pirannacommented, May 16, 2018

@piranna Thoughts?

Since Jimp accept ArrayBuffer, I would take a look first about the exact format that it needs, and if term-img accept it too. If there’s some difference between them or the format (maybe Jimp accept an ArrayBuffer with the file content instead of the raw data, for example), then it’s ok to me to add the extra function, or maybe better piggy-back the current one adding a new input type.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issuehunt
Render raw pixel data from ArrayBuffer source #4 ... How hard would it be to support rendering raw ArrayBuffer pixel data like how...
Read more >
Uint8Array to image in JavaScript - Stack Overflow
I want to show image in image tag from Uint8Array directly. This is very simple using a Blob: // Small red dot image...
Read more >
Pixel manipulation with canvas - Web APIs | MDN
The data property returns a Uint8ClampedArray which can be accessed to look at the raw pixel data; each pixel is represented by four ......
Read more >
Convert Array buffer to base64 string to display images in ...
At times, you'll have a huge ArrayBuffer data as shown in the below image that may come from the server side or any...
Read more >
Typed arrays - Binary data in the browser - web.dev
pixels [i] *= gamma;. The other way to create typed array views is to create an ArrayBuffer first and then create views that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found