/Image-Processing-API

An API that allows you to place images into your frontend with the size set via URL parameters and resize the image based on the entered size

Primary LanguageTypeScriptMIT LicenseMIT

GitHub contributors GitHub issues GitHub license GitHub forks GitHub stars GitHub Language

πŸ“ Table of Contents

πŸ“™ About

  • An API that allows you to place images into your frontend with the size set via URL parameters and resize the image based on the entered size.
  • Same the resized image on /assets/thumb folder
  • If the entered image and size are entered before, Cached version is used rather than generating a new version.

πŸ”š API Endpoint

GET /api/images?filename=<imagename>&width=<width>&height=<height>

🏁 Getting Started

This is an list of needed instructions to set up your project locally, to get a local copy up and running follow these instructuins.

Installation

  1. Clone the repository
$ git clone https://github.com/ZeyadTarekk/Image-Processing-API.git
  1. Navigate to repository directory
$ cd Image-Processing-API
  1. Install dependencies
npm install

Running

  1. Running on development mode
npm run start

Open http://localhost:3000 with your browser to see the result

Building for production

  1. Compiling for production mode
npm run build

Running Tests

npm run test

πŸ’» Built Using

  • Node.js
  • Express.js
  • TypeScript

Contributors

Zeyad Tarek
Zeyad Tarek

License

This software is licensed under MIT License, See License for more information Β©ZeyadTarekk.