| Filename | |
|---|---|
| Size | |
| Filetype | |
| Last Modified |
| Filename | Original Size | Status | New Size | View Image | Download File |
|---|
Do not hotlink to images since they will be removed every 10 minutes. Maximum filesize is 5MB.
To resize your image files perform a POST request to https://www.toptal.com/developers/img-resize/resize with the
input parameter set to the file content you want to crush, the op param
set to one of fixedWidth, fixedHeight, scale, stretch,
letterbox or percentage and the relevant params for each operation set
correctly (see below):
curl -X POST \
-s \
--form 'op=fixedWidth' \
--form 'width=200' \
--form 'input=@flowers.jpg;type=image/jpg' \
https://www.toptal.com/developers/img-resize/resize > flowers-200x150.jpgTo see implementations in other languages see the Examples page.
widthheightscaledWidth and scaledHeightstretchedWidth and stretchedHeightletterboxWidth, letterboxHeight and letterboxColorpercent