https://github.com/danwild/color-correction-server
Request a remote image, with modified RGB channels
https://github.com/danwild/color-correction-server
color rgb rgb-color tile-server tileserver wms
Last synced: 10 months ago
JSON representation
Request a remote image, with modified RGB channels
- Host: GitHub
- URL: https://github.com/danwild/color-correction-server
- Owner: danwild
- License: apache-2.0
- Created: 2017-02-15T04:27:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-20T05:37:33.000Z (over 9 years ago)
- Last Synced: 2025-02-25T07:17:54.348Z (over 1 year ago)
- Topics: color, rgb, rgb-color, tile-server, tileserver, wms
- Language: JavaScript
- Homepage:
- Size: 176 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# color-correction-server
A simple nodejs express proxy server. Used to request a remote image with modified RGB channels.
## GET params
```javascript
{
url: 'http://example.com/cat.jpeg' // the url of the target image
r_min: 4, // min valid value for red channel
r_max: 70, // max valid value for red channel
g_min: 4, // min valid value for green channel
g_max: 40, // max valid value for green channel
b_min: 4, // min valid value for blue channel
b_max: 40, // max valid value for blue channel
}
```
RGB params define the valid range for each channel, valid color values are then 'stretched' out to cover the 0-255 channel.
## Example
For example, we can query a true color satellite image from NASA and modify RGB channels so we see more detail in the green/blue channels - i.e. ocean colors.
|Before|After|
|---|---|
|||