Project

tinify

0.06
No release in over a year
Ruby client for the Tinify API. Tinify compresses your images intelligently. Read more at https://tinify.com.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Gem MIT License Ruby CI

Tinify API client for Ruby

Ruby 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 Ruby client.

Installation

Install the API client:

gem install tinify

Or add this line to your application's Gemfile:

gem "tinify"

Usage

require "tinify"
Tinify.key = "YOUR_API_KEY"

Tinify.from_file("unoptimized.png").to_file("optimized.png")

Running tests

bundle install
rake

Integration tests

bundle install
TINIFY_KEY=$YOUR_API_KEY rake integration

License

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