https://github.com/saasify-sh/image-size
Hosted version of image-size/image-size
https://github.com/saasify-sh/image-size
api oss saasify
Last synced: 18 days ago
JSON representation
Hosted version of image-size/image-size
- Host: GitHub
- URL: https://github.com/saasify-sh/image-size
- Owner: saasify-sh
- Created: 2019-11-26T02:29:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T10:11:08.000Z (over 3 years ago)
- Last Synced: 2025-03-02T14:25:53.338Z (over 1 year ago)
- Topics: api, oss, saasify
- Language: TypeScript
- Size: 49.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# image-size
> Simple API for detecting image dimensions
This SaaS project was bootstrapped with [Saasify](https://saasify.sh).
## Supporting OSS
This project provides a hosted API for [image-size](https://github.com/image-size/image-size).
**We set aside the majority of any revenue generated from this API for the original OSS developers**. If this is you, please [get in touch](https://saasify.sh/#/support) to setup payouts and answer any questions you may have.
## Hosted API
## Quick Start
Welcome to the quick-start! There is currently only one API, which is detailed below via `cURL`.
Also be sure to check out the full reference of [API endpoints](https://image-size.saasify.sh/docs#tag/service).
### Getting image size from a URL
```sh
curl -X POST 'https://api.saasify.sh/1/call/dev/image-size/sizebyurl' \
-H 'content-type: application/json' \
-d '{
"url": "https://upload.wikimedia.org/wikipedia/commons/2/23/Close_up_of_a_black_domestic_cat.jpg"
}'
```
Returns the dimensions of the image
```json
{
"height": 4032,
"orientation": 1,
"width": 3024,
"type": "jpg"
}
```
### Supported formats
- BMP
- CUR
- DDS
- GIF
- ICNS
- ICO
- JPEG
- KTX
- PNG
- PNM (PAM, PBM, PFM, PGM, PPM)
- PSD
- SVG
- TIFF
- WebP
## License
MIT © [image-size](https://github.com/image-size)