A simple API that process(resize) images if any dimensions are given and creates a thumbnail against those dimension for future use.
/api/image
| Query param | Description |
|---|---|
| name | Name of media available in assets folder, Right now their are four files available named [luffy.jpg, nezuko.jpg, mt_fuji.jpg, sukuna.jpg]. Note: file extension is not included in url param |
| width | Custom image width - optional |
| height | Custom image height - optional |
npm install
npm run dev
npm run prod
npm run build
npm run test