
That focus on the most visually important areas of your image. You can also take advantage of intelligent cropping to create thumbnails Optimally compressed with a nice and crisp appearance. You will only have to upload your image once. The API handle resizing you avoid having to write such code yourself and Use the API to create resized versions of your uploaded images. You can provide a URL to your image instead of having to upload it. Var resultData = await Tinify.FromBuffer(sourceData).ToBuffer() Var sourceData = File.ReadAllBytes( "unoptimized.jpg") You can also upload an image from a buffer (a string with binary) and get Var source = Tinify.FromFile( "unoptimized.webp") 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! using TinifyAPI Ī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. The documentation assumes you're familiar with asynchronous Since there is no synchronous equivalent, we have Implemented as an asynchronous method that returns a Task. InstallationĪnd above, which means it works with. 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.
