Comments (2)
not familiar with the specifics of Lambda, but if you're using nodejs in it, look at the example in the readme [1]. .reduce()
will return an array of subpixels and you can use any png (or other image format) encoding lib on npm to turn it into an image to output alongside an appropriate Content-Type header.
[1] https://github.com/leeoniya/RgbQuant.js#nodejs
from rgbquant.js.
closing, since rgbquant doesn't handle image encoding, which should be delegated to other libs.
from rgbquant.js.
Related Issues (20)
- What is your License ? ( The MIT License (MIT) ?) HOT 1
- Make it async HOT 8
- Demo site has 404 error HOT 4
- palette length for GIF HOT 1
- Question on usage HOT 1
- Rebuilding the palette HOT 2
- Visual artifacts HOT 2
- inconsistent sampling for population by palette size HOT 4
- Add LICENSE file to repo HOT 1
- Does not work for tiny images HOT 1
- dithSerp palette issue HOT 10
- test alternative color distance strategies HOT 1
- Ordered Dithering HOT 3
- Uint8Array image and serpentine dithering not supported? HOT 6
- Description of algorithm? HOT 10
- NPM package metadata does not include license
- Predefined palettes with 512 colors error with `Nothing has been sampled, palette cannot be built.` on `reduce`
- P5js HOT 1
- RGBA?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rgbquant.js.