Enzo3322 / magic-image-api

This API resize and crop images using ffmpeg multer sharp and express.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Magic image API

This API resize and crop images using ffmpeg multer sharp and express.

Run: npm i && npm run start

Request for resize:

curl --location 'http://localhost:3000/resize' \
--form 'image=@"/path/to/image.jpg"' \
--form 'width="800"' \
--form 'height="500"'

Request for crop:

curl -X POST -F "image=@/path/to/image.jpg" -F "ratio=16:9" http://localhost:3000/crop

About

This API resize and crop images using ffmpeg multer sharp and express.


Languages

Language:JavaScript 100.0%