javascript - How is this sprite image generated?
曾经蜡笔没有小新
曾经蜡笔没有小新 2017-06-26 10:56:32
0
5
901

https://s1.hdslb.com/bfs/stat...

Much smaller than ordinary pictures. Size 1600*2444 but only 70kb? Reduced quality?
During development, was this typesetting done manually one by one? Or generated by i tool

曾经蜡笔没有小新
曾经蜡笔没有小新

reply all(5)
Peter_Zhu

This picture is an 8bit png (maximum 256 colors). For pictures with simple colors, you can use this format to reduce the size.

迷茫

There are tools, /a/11...

Image compression can be done with gulp-imagemin. This makes it easy to integrate the project into your workflow.

It seems that there are relatively few people using sprite images now, and they are gradually using svg and icon font instead.

阿神

Usually relies on tools. I usually use CssSprite.exe. I just drag the image in and it will generate a sprite image and the corresponding css for you

淡淡烟草味

CssSprite.exe also needs to be dragged in manually

扔个三星炸死你

You can use image editing software such as Photoshop to put multiple pictures on the same layer and export them, or use automated construction tools to automatically stitch the merged pictures

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template