Tag Archives: png

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!


 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

Automatically Display Icon On Links Directing To Various File Types In Your WordPress Post Content

You might have noticed in some websites that shows an icon on the side of the document or file link. PDF icon is most common and widget used icon on links directing to PDF. Now by using MimeTypes Link Icons plugin you can automatically convert your file links to their icons. The plugin covers a long list of supported file extensions where it would be showing the icons automatically.

Continue reading Automatically Display Icon On Links Directing To Various File Types In Your WordPress Post Content