Questions tagged [webp]

WebP is an open standard for image encoding. It is intended to provide support for animation, metadata, lossless compression, and transparency without the patent or license restrictions of existing formats.

WebP is a new image format that provides lossless and lossy compression for images on the web. WebP lossless images are 26% smaller in size compared to PNGs. WebP lossy images are 25-34% smaller in size compared to JPEG images at equivalent SSIM index. WebP supports lossless transparency (also known as alpha channel) with just 22% additional bytes. Transparency is also supported with lossy compression and typically provides 3x smaller file sizes compared to PNG when lossy compression is acceptable for the red/green/blue color channels.

754 questions
16
votes
2 answers

Can we use webp extension image in og:image meta tag?

In my website i have converted all the image from jpg or png to webp but after this my og:image meta tag is unable to fetch images. In facebook debugger i see the following error The provided 'og:image' properties are not yet available because new …
Gaurav Aggarwal
  • 9,809
  • 6
  • 36
  • 74
16
votes
3 answers

How to support WebP images in react native?

I have to show .WebP image extension images in my react-native app. I'm running on iOS and it's not displaying any image. I googled and found some information saying that webP images won't support on iOS and need to use a library or have to write an…
Sivajee Battina
  • 4,124
  • 2
  • 22
  • 45
16
votes
2 answers

Image size is increased when converted from jpg to webp with quality value 100

I want to replace my .png and .jpg files in android project with .webp to reduce the app size. I am verifying these 3 cases for jpg to webp conversion(for both .png and .jpg) : Lossy with 80% quality Lossy with 100% quality Lossless for Case 1,…
userv
  • 2,527
  • 4
  • 27
  • 36
15
votes
1 answer

JPG vs JPEG2000 vs WebP

I'm building my website using React and have multiple images to display. After running an audit using the Google Chrome audit function, I've been getting the "Serve images in next-gen formats" opportunity message. After reading about the various…
Brian Phair
  • 328
  • 4
  • 12
14
votes
5 answers

WebP encoder/decoder in go

Is there somewhere a complete WebP encoder and decoder compatible with current weekly (or forkable)? Is it comparable in speed to the standard png one ?
Denys Séguret
  • 372,613
  • 87
  • 782
  • 758
14
votes
2 answers

Manipulate WebP images in Python

I'm looking for something like PIL (Python Imaging Library), which sadly doesn't support WebP images. I'd like to be able to do resizes and crops. Or at least convert to JPEG and then I can work it with PIL.
14
votes
5 answers

How to serve a .JPG for browser that not support .webp in a proper way?

I am planning to use WebP on my E-Commerce website.It can boost a performance a lot based on Lighthouse test. But the problem is. we still have user that use iOS which does't have support for WebP format. I need more information about the proper way…
L.885
  • 425
  • 1
  • 5
  • 12
14
votes
4 answers

Error while converting webp image file to jpg in python

I have written small program to convert webp to jpg in python import imghdr from PIL import Image im = Image.open("unnamed.webp").convert("RGB") im.save("test.jpg","jpeg") when executing it gives me following error No handlers could be found for…
Sandeep Kumar Singh
  • 275
  • 1
  • 4
  • 13
13
votes
6 answers

WebP image format on iOS

I’m currently researching the possibility to use Google’s WebP image format in our iOS software. I found it’s not hard to decode the WebP into RGBA8888 as needed using the Google’s C-library. However, I’d like to create an implementation comparable…
Soonts
  • 20,079
  • 9
  • 57
  • 130
13
votes
1 answer

Android Studio IDE Convert Images to WebP does not convert

I am using Android Studio Arctic Fox | 2020.3.1 Patch 1 after generating the ic_launcher icon for my app I get all the icons in mipmap resource folder as .png images. The default icons were in .webp format so I want to convert the automatically…
dnhyde
  • 1,265
  • 2
  • 14
  • 24
13
votes
5 answers

Webp support for java

As our network based applications fall in love with webp image formats, I found my self in need of a method or a lib which can decode it, I have written this piece of code, but it only misses the native decoder(how ever I prefer it to be a jar lib)…
Reza
  • 321
  • 2
  • 4
  • 14
12
votes
4 answers

WebP library for C#

It seems like there is no code samples for WebP in C#. Is there any? I don't need to display WebP images directly but saving & transferring as WebP would be nice.
Nime Cloud
  • 6,162
  • 14
  • 43
  • 75
12
votes
5 answers

How to create a .webp image in PHP

How do you create .webp images using PHP? Modern versions of PHP (>= 5.5.0) can be compiled with WebP support but from I've seen this isn't common on many web hosts. If compiled with WebP support you can use the built-in imagewebp() function to…
Brett DeWoody
  • 59,771
  • 29
  • 135
  • 184
10
votes
3 answers

Convert jpg to webp using imagewebp

I'm having trouble using imagewebp to convert an image to webp. I use this code: $filename = dirname(__FILE__) .'/example.jpg'; $im = imagecreatefromjpeg($filename); $webp =imagewebp($im, str_replace('jpg', 'webp',…
Stefan Edberg
  • 231
  • 2
  • 4
  • 15
9
votes
1 answer

How to make FFmpeg convert a PNG sequence into a WEBP sequence, instead of making a single animated WEBP

This command converts a PNG sequence into a JPG sequence: ffmpeg -i in/%8d.png out/%8d.jpg However, when using the same command with WEBP: ffmpeg -i in/%8d.png out/%8d.webp It will put all frames into a single WEBP, which is animated. I have not…
nmkd
  • 306
  • 3
  • 9
1
2
3
50 51