The Challenge

We at Tokopedia use GraphQL for interacting with services from our front-end clients Android, iOS and Web. Using GraphQL we send POST requests to the server and get back JSON response. But as the feature grows, size of the query POST body also grows. We wanted to reduce the payload size for our GraphQL queries due to following reasons :

  • We can save client bandwidth by sending less data to the server.


An artwork by roserodionova

What does TinyPng do?

As per the description given on TinyPNG website:

TinyPNG uses smart lossy compression techniques, which reduces the file size of your PNG files by decreasing the number of colors in the image. Thus requiring fewer bytes to store the data. The effect is nearly invisible but it makes a very large difference in file size!

How is it helpful to maintain optimal Apk size?

TinyPNG compression reduces image size significantly without much loss in quality. So it is a win-win for developers, designers, and product owners.

Varun Sharma

Software Engineer. Interested in interesting problems.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store