Home>Article>Web Front-end> One trick to teach you how to optimize the file size of PNG and JPG images
This article mainly talks about using PhotoShop to optimize the file size of PNG and JPG images.
PNG (Portable Network Graphic Format, PNG) picture is an image file storage format, its purpose is to try to replace the GIF and TIFF file formats, while adding some GIF file formats Features that are not available. When PNG is used to store grayscale images, the depth of the grayscale image can be up to 16 bits. When storing color images, the depth of the color image can be up to 48 bits, and it can also store up to 16 bits of alpha channel data.
It is precisely because of the superiority of using PNG images in web pages that a large number of website images now use PNG images. However, many times the size of the PNG images we make is too large, which requires the use of special software to edit PNG images. Image size is compressed and optimized.
PS video tutorial]
The above is the detailed content of One trick to teach you how to optimize the file size of PNG and JPG images. For more information, please follow other related articles on the PHP Chinese website!