Follow Me:

Thursday, 16 July 2015


    WebP is an image file type that was created in 2010 and is created by Google. This image format provides lossless and lossy compression to images on the server. Big social media websites are using WebP image process are Google, Facebook and EBay.
  WebP images natively supporting to the following browsers are Chrome, Opera, Opera Mini, Android Browser and Chrome for Android browsers only. It is not supported any other browsers like Firefox, IE and Safari,etc.


    WebP lossless image files are 26% smaller than PNGs.
    WebP lossy images files are 25-34% smaller than JPEG images at equivalent SSIM index.
    WebP supports lossless transparency (also known as alpha channel) with just 22% more bytes.

WebP images creating process in php:

you can use following php commands,to get the webp images

$imgName     =   "codingslovers.jpg";
$webPName   =   "codingslovers.webp";


 cwebp [quality qualitypercentage] [source image] -o [destination]

exec("cwebp -q 0 ".$imgName." -o ".$webPName." ");

Another Method:

exec("convert -colorspace RGB ".$imgName." ".$webPName . " ");

Exec : executes the given command in php

Advantages of WebP:

Smaller file size
Different compression algorithm
Smoother color gradations
Alpha channel mask

Disadvantages of WebP:

Weak browser support
Artifacting has plastic appearance
Poor exporting interface

Browserwise WebP Performance:

Categories: , ,


  1. I hope the advantages of PHP never decrease until creation of websites gone from the IT world. Thanks for taking your own time to discuss about the topic.
    PHP Training in Chennai|PHP Course in Chennai

  2. Greens Technology's. the leading software Training & placement centre Chennai & (Adyar)
    amazon-web-services training in chennai

  3. looking for the Best oracle apps finance Training in Chennai? oracle apps training in chennai

  4. • such a good website and given to more information thanks! and more visit..
    ios training in chennai

  5. Thanks for taking time to share this webpage.It is really helpful.Continue shares more.
    SAS Training in Chennai | SAS Training center in Chennai | SAS Training in Velachery


  6. Thanks for posting this useful content, Good to know about new things here, Let me share this, . Hadoop training in pune

  7. This post is very useful, I liked it and enjoyed reading it, Thanks for sharing.
    IT Job Training in Chennai

  8. Nice post. Very interesting to read. Thank you for Sharing.
    erp software in chennai