![]() Run the following command to open the webp format images. In the output, you can see that the size of the image has been comparatively decreased. $ cwebp -q 60 linux.png -o linux.webp $ cwebp -q 60 linux.jpeg -o linux1.webp You can choose your image name accordingly. In this example, I have used image file linux.png and l inux.jpeg file to convert in webp format. Run the cwebp command with option -q to define the quality of image and -o to define the output file. Using the cwebp tool, an image can be converted into webp format. Open a new terminal and use webp utility tools like other system commands. $ sudo vi ~/.bashrcĬopy the following line at the end of the file. bashrc file to run the webp utility tools without writing the absolute path. Now add the directory ~/ libwebp-0.6.1-linux-x86-32/bin to the PATH environment variable in the ~/. To find all the options provided by the webp utility tool, use the following command. Webpinfo : This tool is usable to view information about a webp image file Vwebp : This tool is used to view webp files In the directory, you can see the precompiled binary files which are usable for various webp utilities such as:Īnim_diff : This tool can be used to find the difference between animation imagesĪnim_dump: This tool is usable to dump the difference between animation imagesĬwebp : This tool can be used for webp encodingĭwebp : This tool is used for webapp decoding ![]() $ sudo apt-get update $ sudo apt install webpĪlso, you can install the webp package from Google’s repository as: $ wget Įxtract the tar file and move to the extracted directory. Run the command below to update the Ubuntu repository to the latest index and install webp package. The webp package is already available in the official ubuntu repositories. This article will cover how to use webp image format for creating compressed and quality images for the website. One of the best practices to optimize the website performance is using compressed images. Since its initial announcement in 2010, it has been updated and improved to reach its present condition.Webp is an open-source image format in Linux which supports lossless and lossy compression for images on the web. Despite all the recent hoopla, WebP pronounced "weppy" is a somewhat ancient technology. The user experience for practically all of your website visitors will be improved if you modify your WordPress or custom-built site to support it, it's SEO recommended to use WebP in your designs which makes your website lighter, run faster, and smoother, which translates to higher search engine rankings and a better experience for visitors. Adopting WebP at this time is a sure bet. ![]() It’s become a popular topic lately as it pulled ahead in the next-gen image format wars: as of this writing, it’s supported on Chrome, Microsoft Edge, Firefox, Opera, and most recently Safari. 90% of modern web browsers support this Google-developed open-source format. The most widely used next-generation image format is WebP. It enables animation, alpha transparency, and both lossy and lossless compression. Google created the WebP image file format to take the place of the JPEG, PNG, and GIF file formats. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |