\TinyPNG
TinyPNG Class
- Author: Michael Donaldson
- Copyright: Copyright (c), Michael Donaldson. All rights reserved.
- License: MIT
Synopsis
class TinyPNG
{
- // constants
- const API_ENDPOINT = "https://api.tinypng.com/shrink";
- // methods
- public void __construct()
- public string|array compress()
- private array compressImage()
Constants
Name | Value |
---|---|
API_ENDPOINT | "https://api.tinypng.com/shrink" |
Members
private
- $api_key
—
string
API Key for TinyPNG - $curl
—
resource
Instance of cURL - $use_pem
—
boolean
Do we need to use the cacert.pem file?