recipesmaio.blogg.se

Tinypng panda
Tinypng panda







header "Content-Type: application/json" \ POST /shrink HTTP/1.1įor example, if you have as your source: curl \ The API accepts a JSON body with the image URL as a source location. You can also provide a URL to your image instead of having to upload it. POST /shrink HTTP/1.1Īuthorization: Basic YXBpOmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1įor example, if you have a file named unoptimized.jpg in the current directory: curl \ Compression will start as soon as you upload a file or provide the URL to the image. We will automatically detect the type of image and optimise with the TinyPNG or TinyJPG engine accordingly. You can upload any JPEG or PNG image to the Tinify API to compress it. All requests require an Authorization header that contains a Base64 digest of the authentication string api:YOUR_API_KEY where YOUR_API_KEY is the key that can be found on your API account page.Īll requests must be made over an encrypted HTTPS connection. Always keep your API key secret!Īuthentication to the API is done with HTTP Basic Auth.

tinypng panda

You can get an API key by registering with your name and email address. To use the API you must provide your API key. We also maintain client libraries in various languages that make it very easy to interact with the Tinify API. The Tinify API allows you to compress and optimize JPEG and PNG images.









Tinypng panda