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
9
votes
4 answers

how to set the different background image format (png and webp) of the same image in section tag

I have started using webp images in my site with tag. all set except this
I don't know, how to set the different background image format (png and webp) of the same image.…
manoj v
  • 91
  • 1
  • 2
9
votes
2 answers

1 files were skipped because there was no net space savings

I am trying to convert a PNG image file into a webP image file. but it gives me an error even my application minSdkVersion>19 but i don't know why its give me an error like this 0 files were converted 1 files were skipped because there was no net…
Mayur Patel
  • 2,300
  • 11
  • 30
9
votes
3 answers

how to convert jpg to webp in C#

I'm writing a telegram bot that takes jpg from it's users and sends it back as stickers. I did this correctly by downloading jpg, change the extension of file to png and upload and send it back as a sticker message to the user. as shown below: var…
Persian LionKing
  • 304
  • 1
  • 5
  • 19
9
votes
3 answers

WEBP image fall back

I searched a lot on the internet & can't find the right example or complete tutorial on the web which can full prof. So guys please suggest me some good examples. I have tried WEBP code on lots or website like use with modernizer, checking browser…
Harden Rahul
  • 930
  • 8
  • 15
9
votes
1 answer

JPG vs WebP performance on Android

I´m trying to get performance stats about how Android load, decode and render WebP images against JPG, but my results are a little confuse. Decoding WebP images to Bitmap are slow than JPG. Some stats: WebP 66% less file size than JPG, 267% more…
Roman
  • 101
  • 5
9
votes
1 answer

Is it possible to control playback of animated webP images?

Does webP have a javascript API? I want to seek to a specific point in an animated webP. I haven't come across any documentation to suggest it does but no harm asking SO. Note: I'm not interested in the HTML5 video element, webM or other video…
Oisin Lavery
  • 3,444
  • 2
  • 20
  • 18
9
votes
3 answers

How to convert my photos to webp format of Google in windows 8.1?

I want to convert my photos from jpg, gif, and png to WebP format. When I'm trying to use CMD for using cwebp command, I got this error message : 'cwebp' is not recognized as an internal or external command, operable program or batch file. What…
Hosein
  • 179
  • 1
  • 2
  • 10
8
votes
2 answers

webp/jpg - Preloading only the needed type in a html file

i have a website and i am using webp and jpg as a fallback. in the header, i have a bis image and smaller image for mobile users. So i have 4 files: header-big.webp header-small.webp header-big.jpg header-small.jpg Because it is in the header, i…
kanuddel
  • 131
  • 1
  • 6
8
votes
1 answer

Cross-browser Webp images support

I have a problem. In my HTML pages, I have a lot of Webp images that I can visualize only using Google Chrome. With other browsers like Mozilla, Explore, and Safari I can't see them. Is there a solution? Maybe without change every image's extension…
Marco P
  • 115
  • 1
  • 7
8
votes
2 answers

ASP.NET libwebp.dll how to save WebP image to disk

I've built libwebp.dll for WebP, using these instructions (I downloaded this source code) I've added the libwebp.dll file to the bin folder of my project. I then added this code (found here): Private Declare Function WebPEncodeBGRA Lib…
Adam
  • 6,041
  • 36
  • 120
  • 208
8
votes
1 answer

imagick php 7.2 not setting webp format

I have ImageMagick 6.7.8-9 and cwebp and dwebp (libwebp, libwebp-devel) installed and working as expected from the command line. I have php7.2 installed from webtatic. the problem I'm facing is that php imagick is not wrking with webp extension…
sami
  • 81
  • 1
  • 4
8
votes
0 answers

How to encode WebP animation on Android

I can't find any documentation or example code on how to create an animation file in the WebP format on Android. I know how to encode one WebP image from a Bitmap. I also know there exists a webpmux command line utility to combine multiple WebP…
mvandillen
  • 904
  • 10
  • 17
8
votes
2 answers

Android Studio doesnt render WebP format

I am trying to use webp format pictures in my drawable folder. But unfortunately android studio cant render the file and it is not shown on the layout. Is there any solution for this?
Sajid Anam
  • 139
  • 1
  • 12
7
votes
3 answers

How to check if the browser supports AVIF images

How can I detect if the browser supports AVIF images using JavaScript? I have viewed this question and after reading the answers I was able to build a useful one-liner function to check browser support for various image types. const isSupported =…
7
votes
1 answer

webp fallback for img tag in html

I know the solution is but which format is standard? 1. test 2.
alin
  • 75
  • 1
  • 4
1 2
3
50 51