image placeholder api creates and handle images from local disk and allowing resize and basic operations.
width
: numberheight
: numberfit
: string, one of'cover'
,'contain'
,'fill'
,'inside'
,'outside'
, (default: 'cover')flip
: booleanrotate
: numberformat
: string, one of'jpg'
,'jpeg'
,'png'
http://localhost:3000/api/images?filename=fjord&width=500&height=400&fit=cover&rotate=170&flip=true&format=png
clone repository to your local machine and install dependencies.
git clone [email protected]:tarek-elmasri/image_processing.git
npm install
npm start
start
: to run production build.dev
: to run development server.build
: transpile typescript to es5.lint
: eslint script.test
: run tests.prettier
: formatting.