Small knowledge, big challenge! This paper is participating in theEssentials for programmers”Creative activities.

preface

According to the previous plan, we will continue to publish documents during the National Day.

But we may be National Day 7 tianle, feel the first 2 days of the National Day to write articles are very tragic.

Consider oneself also not what special cow force write a writer, so still in the back of the holiday a few days to write out of the box software, to small dishes.

Today I will introduce you to TinyPNG, the image compression website.

Why compress images

While the size of mobile apps is creeping up, it’s not that apps aren’t trying to reduce the size of their packages.

The simplest way is to compress resource images. This move can be said to be an immediate effect, not like the big factory to optimize a bit of space to fight, TinyPNG is undoubtedly a very good choice for compressing pictures.

TinyPNG

TinyPNG website

This website is very simple, just upload your original image, drag in the image, WebP, PNG, JPEG, and wait for compression, finally successful, will give the compression ratio, original and compressed image size, as well as the download address.

After downloading, put it into the resource library and use it directly.

Don’t underestimate this website oh, many big customers are very awesome:

TinyPNG4Mac

Of course, this is the simplest case, usually compressed resources are not a picture, but a stack of pictures, and that’s where TinyPNG4Mac comes in.

First of all, we need to obtain a key, which can be applied on the website TinyPNG:

This key will be sent to the mailbox after application, please check it.

Next, let’s download TinyPNG4Mac:

TinyPNG4Mac Release

Note that TinyPNG4Mac is an open source, free Swift project, so don’t despise your little hands, just click Star.

Then there is the very simple setup:

So much for that.

Of course, other platforms also have corresponding scripts and software, you can search and check yourself:

TinyPNG search results on GitHub

conclusion

Reducing the package size of your App by compressing images through TinyPNG is very elementary, but probably the easiest step for those of us working in small factories to optimize our App.

As an indie developer, you probably don’t even have a UI, so you have to compress images yourself.

If it is a company project, it is suggested to send TinyPNG to the UI designer (generally they also know this software), please ask them to compress it and upload it to the company project.

That’s all for today’s share.

We’ll see you next time.