Post by account_disabled on Nov 29, 2023 21:52:20 GMT -6
Graphics extensions PNG and JPEG are very popular extensions on websites, with PNG being suitable for graphics that require a transparent background. (In this era, a clear background is very important. can be used to play with many different effects) The file size will be very heavy if there are a lot of colors. As for JPEG, JPG is suitable for photos with a lot of colors. The size is many times lighter than PNG, but cannot make a transparent background. However, sometimes we want an image with a lot of colors and a clear background. Using PNG can sometimes produce large images of 1 Mb or more. (Admin once made a website that required 3 MB of clear PNG graphics because it was unavoidable.
The method that was used before was to take these image files to reduce weight first. Which can Phone Number List help 50 – 70%. Who hasn't read it yet? Recommended: Techniques that make websites load faster, reduce image weight, and are more effective than T25!! Today the admin found another technique for solving this problem from Mr. Peter Hrynkow , the creator of the famous beer website in Japan, Sapporo Beer. Let's see how he did it. Problem: PNG image with clear background, file size exceeds 1000 kb! Sapporo Beer Website Sapporo Beer website that uses this technique The part that they wanted to make clear was the large beer can on the website page. The background (the black area) was used as a video. So it is necessary to make the background clear.
At first he tried saving it as PNG with a clear background and it came out with a size of 1.2 MB (1200 kb). So he went looking for a way to fix it. And got a new technique that reduced the image to only 271 kb !! Solution: Make a JPEG image with a clear background with SVG. This technique is easy to do by saving the graphic into 2 images: JPEG beer can with black background (size 260kb) 8-bit PNG images contain only black and white. The black area is where you want the beer can to be clear (size 11kb). JPG Transparent PNG Then he uses SVG to mask the JPG image by using the PNG image as a mask with this HTML image (from item 1) and set a mask for that image with a PNG image (from item 2). Masking is to limit the frame to the image.
The method that was used before was to take these image files to reduce weight first. Which can Phone Number List help 50 – 70%. Who hasn't read it yet? Recommended: Techniques that make websites load faster, reduce image weight, and are more effective than T25!! Today the admin found another technique for solving this problem from Mr. Peter Hrynkow , the creator of the famous beer website in Japan, Sapporo Beer. Let's see how he did it. Problem: PNG image with clear background, file size exceeds 1000 kb! Sapporo Beer Website Sapporo Beer website that uses this technique The part that they wanted to make clear was the large beer can on the website page. The background (the black area) was used as a video. So it is necessary to make the background clear.
At first he tried saving it as PNG with a clear background and it came out with a size of 1.2 MB (1200 kb). So he went looking for a way to fix it. And got a new technique that reduced the image to only 271 kb !! Solution: Make a JPEG image with a clear background with SVG. This technique is easy to do by saving the graphic into 2 images: JPEG beer can with black background (size 260kb) 8-bit PNG images contain only black and white. The black area is where you want the beer can to be clear (size 11kb). JPG Transparent PNG Then he uses SVG to mask the JPG image by using the PNG image as a mask with this HTML image (from item 1) and set a mask for that image with a PNG image (from item 2). Masking is to limit the frame to the image.