![]() $result = $compressor-> compress( '', true) // Compress raw image data $result-> writeTo( '/path/to/compressed.png') // Write the returned image $result-> getCompressedFileSize() // Int size of compressed image, e.g: 104050 $result-> getCompressedFileSize( true) // Human-readable, e.g: '101. NET Standard 1.4and above, which means it works with. Installation The client currently targets. The beauty of the service is that it allows 500 image optimizations per month for free Which is usually more than enough for a middle-tier website. You can do it manually via the portal or integrate with their API. languages make it very easy to interact with the Tinify API. TinyPNG service allows you to shrink, resize and crop PNG and JPEG images. Try a new browser Chrome 25+, FF 20+, Safari 6. The Tinify API allows you to compress and optimize WebP, JPEG and PNG images. In case you need support with any of these solutions please contact the add-on developer directly. $result = $compressor-> compress( '/path/to/original.png') New API feature: Convert your images to other formats, like WebP, JPG or PNG. Community crafted tools using the Developer API The add-ons on this page have been created by third-party companies and enthusiastic developers. Use Kinglozzer\ TinyPng\ Exception\ LogicException ![]() Use Kinglozzer\ TinyPng\ Exception\ InputException NuGetInstall-Package TinyPNG -Version 3.3.3 This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet modules version of Install-Package. Use Kinglozzer\ TinyPng\ Exception\ AuthorizationException InstallationĬomposer require kinglozzer/tinypng:0.1.* Usage use Kinglozzer\ TinyPng\ Compressor Provides an easy-to-use API for interacting with TinyPNG's developer API. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |