Optimizing Your Image Size Via TinyPNG API In WordPress

TinyPNG for WordPress lets you connect your WordPress site with Tinypng.com API so that you can easily optimize/reduce size of your PNG files on the go. TinyPNG uses a smart lossy compression techniques for reducing PNG file size by selectively decreasing the number of colours in the image, fewer bytes are required to store the data. Effect made by the service is nearly invisible but it makes a very large difference optimizing your PNG files.

[quote cite=”TinyPNG” url=”https://tinypng.com/”]

PNG is useful because it’s the only widely supported format that can store partially transparent images. The format uses compression, but the files can still be large. Use TinyPNG to shrink images for your apps and sites. It will use less bandwidth and load faster.

How does it work? When you upload a PNG (Portable Network Graphics) file, similar colours in your image are combined. This technique is called “quantisation”. Because the number of colours is reduced, 24-bit PNG files can be converted to much smaller 8-bit indexed colour images. All unnecessary metadata is stripped too. The result: tiny PNG files with 100% support for transparency. Have your cake and eat it too!

[/quote]

 Installation & Usage:

Install and activate TinyPNG for WordPress plugin. Upon activation visit your Dashboard -> TinyPNG admin page and enter your email and API key to connect with TinyPNG.

Now you can upload the PNG file using its uploader. As soon as the uploading finishes, the plugin will connect to the TinyPNG API and get you the Optimized image. (The files uploaded and optimized are saved in the TInyPNG folder in the main WP media folder. For eg – /wp-content/TinyPNG )

How to obtain your API key?

If you haven’t made one yet, you can visit this link to make one – https://tinypng.com/developers

Leave a Reply

Your email address will not be published. Required fields are marked *