https://github.com/pukoren/inlineimg-website
The inlineimg.com website sources
https://github.com/pukoren/inlineimg-website
Last synced: 4 days ago
JSON representation
The inlineimg.com website sources
- Host: GitHub
- URL: https://github.com/pukoren/inlineimg-website
- Owner: PuKoren
- License: mit
- Created: 2016-06-25T23:20:27.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-26T20:16:14.000Z (almost 9 years ago)
- Last Synced: 2025-03-09T14:43:58.818Z (3 months ago)
- Language: PHP
- Homepage: http://inlineimg.com
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# inlineimg-website
This repository contains the source of the inlineimg.com website.It is exposed as a demo project for the PHP library [Inline Images](https://github.com/PuKoren/php-inline-images).
## Run it on your host (docker)
Clone the project and run the commands:
```bash
make build #do this only once
make run
```
Website will run on port 3000## API
You can use inlineimg.com as an API, using a web client as curl.
Converting a remote image:
```bash
curl -X POST http://inlineimg.com/api.php --data "from=https://www.gnu.org/graphics/empowered-by-gnu.svg"
```Submitting an image directly using multipart:
```bash
curl --form "data=@~/Heckert_GNU_white.svg" http://inlineimg.com/api.php
```