App development combat 117-app picture optimization

Source: Internet
Author: User
30.1APP Size Optimization 30.1.1 Picture Optimization

1 try to use the Android and iOS system to bring the picture, the system does not have the picture, only pre-placed in the app.

2 reduce the number of preset pictures, such as Androidapp can only preset a set of xhdpi density pictures, only the individual small icons, such as desktop icon, each density of the preset one. The IOS app only presets 2X and 3X images.

3 ordinary bitmap in the different resolution of the device scaling, it is easy to deform, the app is often pre-set content, but different resolution of a number of maps, to solve this problem, which also led to the space of the app to become larger.

You can use point 9 or SVG vector images instead of ordinary bitmaps, the two formats of the graph extension will not be deformed, no need to preset more than one content, the resolution of a different picture, just pre-set a picture, you can effectively reduce the space occupied by the app.

4 apps usually use PNG-formatted graphs, mainly Android and iOS, which are hardware-accelerated, and the images load faster.

But for the Welcome interface diagram, background and guide page diagram, these large-size pictures, we recommend the use of JPG format pictures.

PNG format has a transparent channel, is lossless compression, JPG format is not transparent channel, and is lossy compression, using JPG images, although loading slower, but the picture is small, but also reduce the size of the app.

5 Usually, the guide page of multiple pictures is only the middle of the content of the same, the background is the same, you can split the guide map into a background map and multiple content graph, compared to a number of complete pictures, can effectively reduce the size of the app.

6 apps sometimes use the same content as the left and right arrows, the direction of the different pictures, you can just preset one on the arrow icon, the left and right arrows can be used to rotate the arrow icon of the code to achieve, so just preset a picture, but also reduce the size of the app.

7 in the design of animation effects, you need to design and develop co-workers, so that without frame animation can also achieve animation effect, so that there is no need to preset multiple frames animation required pictures, to avoid the volume of the app to become larger.

8 need to design colleagues in the production of the app preset pictures, not only to consider the brilliant effect, but to minimize the size of each picture.

The flat design of iOS and the material design of Android are also designed to be concise.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.