Home >Common Problem >How to solve the problem of white edges when exporting JPG format from PS
How to solve the problem of white edges when exporting JPG format from PS
There are white edges when exporting JPG format from PS because the output image does not have channels. So the transparent position shows white.
Solution
Just output the image with channel format, such as PNG and PSD. The white edges will become transparent after saving.
The difference between JPG and PNG
JPG (1992): A distortion compression standard method used, 24 bit true color, richer content than GIF, not supported Animation and transparent colors are not supported. The compression method of JPEG is usually lossy compression, which means that the quality of the image will suffer visible damage during the compression process. After a picture is uploaded and downloaded multiple times, the picture will gradually become distorted.
Advantages
JPEG/JFIF is the most commonly used format for storing and transmitting photos on the World Wide Web. JPEG can achieve its best results in photos or realistic paintings with smooth changes in tone and color. In this case, it usually does better than the completely distortion-free method, which can still produce a very good-looking image (in fact it will produce a higher quality image than other general methods like GIF, because GIF is better for line drawing. The graphics (drawing) and illustrations are distortion-free, but full-color images require extremely difficult quantification).
Disadvantages
It is not suitable for line drawings and other text or icon graphics, because its compression method is used on the types of these graphics, which will Obtaining inappropriate results;
PNG (96): The format is lossless data compression. The PNG format has three forms: 8-bit, 24-bit, and 32-bit. Among them, 8-bit PNG supports two different transparency Form (index transparent and alpha transparent), 24-bit PNG does not support transparency, 32-bit PNG adds an 8-bit transparency channel (32-24=8) to the 24-bit, so it can display 256 levels of transparency.
Advantages
* Supports 256-color palette technology to produce small files
* Supports up to 48-bit true color images and 16-bit grayscale images.
* Supports the translucency of Alpha channel.
* Supports gamma correction information for image brightness.
* Supports storing additional text information to retain image name, author, copyright, creation time, comments and other information.
* Use lossless compression.
* Asymptotic display and streaming reading and writing are suitable for quickly displaying the preview effect during network transmission and then displaying the full picture.
* Use CRC cyclic redundancy encoding to prevent file errors.
* The latest PNG standard allows multiple images to be stored in one file.
Disadvantages
But there are also some software that cannot use suitable predictions, resulting in excessively bloated PNG files.
Recommended tutorial: "PHP Tutorial"
The above is the detailed content of How to solve the problem of white edges when exporting JPG format from PS. For more information, please follow other related articles on the PHP Chinese website!