Skip to content

This project is a sample of creating a Web Api that capable of creating images of customized sizes according to the user's needs, instantly

Notifications You must be signed in to change notification settings

mahmoud-elgharably/Image-Resizer-KitKat

Repository files navigation

Image Resizer KitKat

Overview | Description

This project is a sample of creating a Web Api that capable of creating images of customized sizes according to the user's needs, instantly .

Table of Contents

Technicals:

  1. Node and Express Environment
  2. Sharp package
  3. Simple-node-logger package
  4. HTML
  5. CSS
  6. ES6

Instructions

  1. install packages by running this command npm install or yarn.
  2. run this command npm run start.
  3. open http://localhost:3000/api/images?fnm=santamonica&wdt=200&hit=150 in your browser and then try changing the image file name, width and height as well.

API Reference

Resize the image

  GET /api/images/?fnm={filename}&wdt={width}&hit={height}
Parameter Type Description
fnm string Required. filename of the desired image to be resized
wdh number Required. desired width
hit number Required. desired height

Scripts

Run prettier

  npm run prettier

Run eslint

  npm run lint

Build the project

  npm run build

Run the application

  npm run start

Run Locally

Clone the project

  git clone https://github.com/Mahmoud-Elgharably/Image-Resizer-KitKat.git

Go to the project directory

  cd Image-Resizer-KitKat

Install dependencies

  npm install

Run the application

  npm run start

Running Tests

To run tests, run the following command

  npm run test

Author

Mahmoud Elgharably

About

This project is a sample of creating a Web Api that capable of creating images of customized sizes according to the user's needs, instantly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published