Download the PHP package ingowalther/image-minify-api without Composer
On this page you can find all versions of the php package ingowalther/image-minify-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package image-minify-api
Image Minify API
Install an Image-Compression-Service (like TinyPng, JPEGMini) on your own Server!
- Image Minify API
- Installation
- Create Database
- Install Project
- Set permissions for files
- Setup Webserver
- Usage
- Create API-Key
- Compress an Image
- Response
- List all user
- Clients
- PHP
- Grunt-Task
- TODO
- Installation
Currently supports:
- jpeg (mozJpeg, Installation Instructions: http://mozjpeg.codelove.de/binaries.html)
- png (pngquant, https://pngquant.org/)
- svg (SVGO, https://github.com/svg/svgo)
- gif (Gifsicle, https://www.lcdf.org/gifsicle/)
Installation
Create Database
You should create a database first. In this database Image Minify API will create all necessary tables during composer install.
Install Project
Set permissions for files
Setup Webserver
Usage
Create API-Key
Enter a Username. If the user is created correctly you will see the API-Key in your Terminal.
Compress an Image
POST with Params "api_key" and File with Name "image" to http://yourserver/minify
Example:
Response
You will get a Json-Response like this:
| Parameter | Description |
|---|---|
| success | true or false |
| oldSize | ImageSize before compressing (in Byte) |
| newSize | ImageSize after compressing (in Byte) |
| saving | The saving of bytes in percent |
| image | The binarydata of the compressed image (base64 encoded) |
List all user
Output:

API-Clients
PHP: https://github.com/ingowalther/image-minify-php-client
Grunt-Task: https://github.com/yannicstadler/image-minify-api-grunt-task
TODO
- Quota
All versions of image-minify-api with dependencies
adambrett/shell-wrapper Version 0.6
symfony/dependency-injection Version 2.7.6
symfony/yaml Version 2.7.6
symfony/config Version 2.7.6
symfony/console Version 2.7.6
doctrine/dbal Version 2.5.2