Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arjunsumarlan/image_temperature_adjustment
Script for Adjusting Image Temperature
https://github.com/arjunsumarlan/image_temperature_adjustment
Last synced: 28 days ago
JSON representation
Script for Adjusting Image Temperature
- Host: GitHub
- URL: https://github.com/arjunsumarlan/image_temperature_adjustment
- Owner: arjunsumarlan
- License: mit
- Created: 2024-02-20T16:49:25.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-02-20T17:14:29.000Z (9 months ago)
- Last Synced: 2024-02-20T18:02:23.689Z (9 months ago)
- Homepage:
- Size: 8.42 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Image Temperature Adjustment Script
## Overview
This script is designed to adjust the color temperature of JPEG images, simulating warmer or cooler tones. The primary purpose is to provide a tool for modifying the color tones of images while preserving overall image quality.
## Features
- **Temperature Adjustment:** The script accepts a temperature adjustment value (positive for warmer, negative for cooler) and applies it to the input image.
- **JPEG Format:** The script specifically handles JPEG image files for both input and output.
- **Input Validation:** Input parameters, including file paths and temperature adjustment values, are validated to ensure the script operates correctly.
## Requirements
- **Node.js:** Ensure that Node.js is installed on your system. You can download it from [Node.js Downloads](https://nodejs.org/).
- **Dependencies:** Install the necessary dependencies using the following command:
```bash
npm install sharp
```## Usage
Run the script from the command line using the following syntax:```bash
npm start -- input_image.jpg output_image.jpg temperature_adjustment_value
```- `input_image.jpg`: Path to the input JPEG image.
- `output_image.jpg`: Path to save the adjusted JPEG image.
- `temperature_adjustment_value`: Numeric value for temperature adjustment (positive for warmer, negative for cooler).## Example
Adjust the temperature of an image to make it warmer:```bash
npm start -- input_image.jpg output_image.jpg 10
```Adjust the temperature of an image to make it cooler:
```bash
npm start -- input_image.jpg output_image.jpg -10
```### Contributing
If you'd like to contribute to this project, please fork the repository, create a new branch, and submit a pull request. Feel free to open issues for bug reports or feature requests.### License
This project is licensed under the MIT License.Image by stockking on Freepik