welovecas.blogg.se

Tiny png
Tiny png











You can choose a local file as the source and write it to another file. Compression will start as soon as you upload a Will automatically detect the type of image and optimise with the TinyPNG or You can upload any WebP, JPEG or PNG image to the Tinify API to compress it. Set the URL of your proxy server, which can optionally include credentials. You can instruct the API client to make all requests over an HTTP proxy. Always keep your API key secret! \Tinify\setKey( "YOUR_API_KEY") Īll requests will be made over an encrypted Get an API key by registering with your name andĮmail address. To use the API you must provide your API key. Require_once( "lib/Tinify/ResultMeta.php") require_once( "lib/Tinify/Exception.php") Include them in your project as shown below. If you do not like to use Composer you can also manually install theįrom Github, extract the files to a folder of your choice and Make sure to require Composer’s autoloader: require_once( "vendor/autoload.php") You can use the PHP client by installing theĪnd adding it to your application’s dependencies: composer require tinify/tinify Languages make it very easy to interact with the Tinify API. The Tinify API allows you to compress and optimize WebP, JPEG and PNG images.













Tiny png