All Projects → tinify → Tinify Php

tinify / Tinify Php

Licence: mit
PHP client for the Tinify API.

Projects that are alternatives of or similar to Tinify Php

tinify-ruby
Ruby client for the Tinify API.
Stars: ✭ 41 (-79.9%)
Mutual labels:  image-compression, image-optimization
Compress Images
Minify size your images. Image compression with extension: jpg/jpeg, svg, png, gif. NodeJs
Stars: ✭ 331 (+62.25%)
Mutual labels:  image-compression, image-optimization
zImageOptimizer
Simple image optimizer for JPEG, PNG and GIF images on Linux, MacOS and FreeBSD.
Stars: ✭ 108 (-47.06%)
Mutual labels:  image-compression, image-optimization
Essential Image Optimization
Essential Image Optimization - an eBook
Stars: ✭ 1,950 (+855.88%)
Mutual labels:  image-compression, image-optimization
Optimize Images
A command-line interface (CLI) utility written in pure Python to help you reduce the file size of images.
Stars: ✭ 141 (-30.88%)
Mutual labels:  image-compression, image-optimization
Imgbot
An Azure Function solution to crawl through all of your image files in GitHub and losslessly compress them. This will make the file size go down, but leave the dimensions and quality untouched. Once it's done, ImgBot will open a pull request for you to review and merge. [email protected]
Stars: ✭ 1,017 (+398.53%)
Mutual labels:  image-compression, image-optimization
Imager
Automated image compression for efficiently distributing images on the web.
Stars: ✭ 266 (+30.39%)
Mutual labels:  image-compression, image-optimization
tinify-net
.NET client for the Tinify API.
Stars: ✭ 45 (-77.94%)
Mutual labels:  image-compression, image-optimization
Image Resizer
On-the-fly image resizing using Node.js and libvips. Heroku Ready!
Stars: ✭ 59 (-71.08%)
Mutual labels:  image-compression, image-optimization
Imgp
📸 High-performance cli batch image resizer and rotator
Stars: ✭ 744 (+264.71%)
Mutual labels:  image-compression, image-optimization
pngloss
Lossy compression of PNG images
Stars: ✭ 73 (-64.22%)
Mutual labels:  image-compression, image-optimization
Emage
🧙‍♂️ From developers to developers: a cross-platform tool for losslessly image compression.
Stars: ✭ 99 (-51.47%)
Mutual labels:  image-compression, image-optimization
docker-imgproxy
🌐 An ultra fast, production-grade on-the-fly image processing web server. Designed for high throughput with Nginx caching. Powered by imgproxy.
Stars: ✭ 45 (-77.94%)
Mutual labels:  image-compression, image-optimization
Imgbot
An Azure Function solution to crawl through all of your image files in GitHub and losslessly compress them. This will make the file size go down, but leave the dimensions and quality untouched. Once it's done, ImgBot will open a pull request for you to review and merge. [email protected]
Stars: ✭ 732 (+258.82%)
Mutual labels:  image-compression, image-optimization
Tinify Python
Python client for the Tinify API.
Stars: ✭ 95 (-53.43%)
Mutual labels:  image-compression, image-optimization
Tinify Java
Java client for the Tinify API.
Stars: ✭ 107 (-47.55%)
Mutual labels:  image-compression, image-optimization
Kraken Php
Official Kraken.io library for PHP - https://kraken.io
Stars: ✭ 121 (-40.69%)
Mutual labels:  image-optimization
Img2ktx
Converts common image formats (PNG, JPG, etc.) to GPU-native compressed (BCn, ETC, ASTC) in KTX containers.
Stars: ✭ 117 (-42.65%)
Mutual labels:  image-compression
Pictureselector
Picture Selector Library for Android or 图片选择器
Stars: ✭ 11,095 (+5338.73%)
Mutual labels:  image-compression
High Fidelity Generative Compression
Pytorch implementation of High-Fidelity Generative Image Compression + Routines for neural image compression
Stars: ✭ 171 (-16.18%)
Mutual labels:  image-compression

Build Status

Tinify API client for PHP

PHP client for the Tinify API, used for TinyPNG and TinyJPG. Tinify compresses your images intelligently. Read more at http://tinify.com.

Documentation

Go to the documentation for the PHP client.

Installation

Install the API client with Composer. Add this to your composer.json:

{
  "require": {
    "tinify/tinify": "*"
  }
}

Then install with:

composer install

Use autoloading to make the client available in PHP:

require_once("vendor/autoload.php");

Usage

Tinify\setKey("YOUR_API_KEY");
Tinify\fromFile("unoptimized.png")->toFile("optimized.png");

Running tests

composer install
vendor/bin/phpunit

Integration tests

composer install
TINIFY_KEY=$YOUR_API_KEY vendor/bin/phpunit --no-configuration test/integration.php

License

This software is licensed under the MIT License. View the license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].