Skip to content

elhaddad1/imageprocessing01

Repository files navigation

Image Processing API

An image processing and optimization API allows you to convert the format of any type of image and optimize them for its size and other factors. For example, you can convert an image in JPG into PNG or reduce a bigger image to a smaller one.

Authors

Installation

Install All Packages

  npm install

Run build Command

  npm run build

Start application

  npm run start

Start application for the first time

  npm run start-first-time

Running Linting

To run tests, run the following command

  npm run lint

Running Tests

To run tests, run the following command

  npm run test

Usage/Examples

Server URL

http://localhost:3000

API Endpoints

http://localhost:3000/api/resizeimage?filename=fjord.jpg&width=%27500%27&height=%27450%27

Samples requests

Server URL

http://localhost:3000/api/resizeimage?filename=fjord.jpg&width=%27500%27&height=%27450%27
http://localhost:3000/api/resizeimage?filename=icelandwaterfall.jpg&width=%27500%27&height=%27450%27
http://localhost:3000/api/resizeimage?filename=fjord.jpg&width=%27260%27&height=%27450%27
http://localhost:3000/api/resizeimage?filename=fjord.jpg&width=%27400%27&height=%27450%27

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors