Welcome Guest, Not a member yet? Register   Sign In
How to convert an image to WEBP mime type in CI?
#3

All other things being equal, WebP compresses the file more effectively than previous formats (png and jpeg), therefore it uses less hosting space and loads pages more quickly when viewed in a browser.

cwebp image.jpg -o image.webp

cwebp -q 100 image1.jpg -o image1.webp

cwebp -q 100 image2.jpg -o image2.webp

ls -lh image1.jpg image1.webp image2.jpg image2.webp

ThenĀ The output of the ls command shows that the size of your imagesĀ 

Use the -lossless option in place of -q to save the entire, original data of photos during compression. The greatest option for preserving the quality of PNG images is this. Modifying the downloaded PNG image
Reply


Messages In This Thread
RE: How to convert an image to WEBP mime type in CI? - by Ami Kariya - 10-27-2022, 02:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB