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
6
votes
2 answers

WebP Formatted images not Always Displaying on iOS

In order to speed HTML page loads, I've converted images to webp format and use the "picture" element as follows:
George Hernando
  • 2,550
  • 7
  • 41
  • 61
6
votes
1 answer

Get 404 not found for webp images on the website

I am replacing the website's images from .jpg to .webp. The way I use is through modernizr to detect whether the browser can accept webp and then set the background-image. But, there's always errors for webp images. Is there anything I haven't set?…
Lisa
  • 69
  • 1
  • 2
6
votes
4 answers

Is webp format more efficient than JPEG?

I am trying to compress and resize DSLR camera photos. But my observation so far is that webp has noticeable degraded quality when webp file size is about 30% smaller than JPEG. Command used to generate webp using imagemagick: convert 1.JPG …
ace
  • 11,526
  • 39
  • 113
  • 193
6
votes
2 answers

Programmatically save/convert image to webp format

Can bitmap be converted or saved to the webp format in android? I search out for that but it turns out to be a dead end for me. I need to save image to webp formate or else need to save in PNG/JPEG then convert to webp programmatically.
Vivek Faldu
  • 336
  • 3
  • 19
6
votes
1 answer

Does webp support grayscale colorspace?

I see official cwebp document have no option to specify target colorspace https://developers.google.com/speed/webp/docs/cwebp because I wish using grayscale color space could save some space for text image.
Charles Chou
  • 179
  • 1
  • 15
6
votes
2 answers

Should I enable GZIP compression for WebP images?

Is it still relevant to enable gzip compression after compressed the WebP images..? In my case I use compression middleware for express.
Altiano Gerung
  • 824
  • 2
  • 15
  • 28
6
votes
1 answer

Magic number for google Image Format

I am developing (Node.js) my own small procedure to check the file (image) types. So far so good, until I tried to add validation for Google WebP format. As a guide for Magic Number I have used the file-type library. In their source code they list…
Amiga500
  • 5,874
  • 10
  • 64
  • 117
6
votes
2 answers

Google page speed insight does not support webp images ?

I am using webp images for my site,but Google page speed insight does not recognize it & hence doesn't give optimized result.Google page insight does not support webp images ? For eg. …
6
votes
1 answer

htaccess cache-control for webp images

this is my htaccess cache-control policy: Header set Cache-Control "max-age=31536000" Header set Cache-Control "max-age=31536000"…
umbbberto
  • 61
  • 7
6
votes
1 answer

Imagemagick Specific webp calls in PHP

I was able to install webp support for imagemagick. But I'm missing some precise commands. The basic is covered thru: $im = new Imagick(); $im->pingImage($src); $im->readImage($src); $im->resizeImage($width,$height,Imagick::FILTER_CATROM , 1,TRUE…
Blaise
  • 143
  • 1
  • 1
  • 9
6
votes
3 answers

imagewebp (php) creates corrupted webp files

Recently I've been fiddling with the WebP image format. I use php 5.5.12 for this, with the gd library installed (gd 2.1.0 / webp supported). I noticed that for some reason, PHP creates corrupted webp-images. The code I used is the following: $im=…
Nelewout
  • 6,281
  • 3
  • 29
  • 39
6
votes
1 answer

Opening WebP image format in Windows Phone 8 application

Is there anyway to open WebP images in windows phone applications? I have a huge set of images to be downloaded from the web and jpg/png are heavy, so looking for an image format that would reduce the data to be downloaded without compromising much…
nipun.birla
  • 719
  • 5
  • 19
6
votes
1 answer

Use WebP images on website

I want try to use images in WebP format as background images on my webpages. But I'm not sure, how make condition in CSS that if browser not support WebP format so in this case use classic jpg image. I find this example code, bud it doesn't…
Petr Šrámek
  • 435
  • 7
  • 26
5
votes
3 answers

Rails 6.1.4 - Ruby 3.0.1 - ActiveStorage and WebP image format

There is no good info about how to setup Rails for serving WebP images with ActiveStorage. Can someone explain how to do it? I try: application.rb config.active_storage.web_image_content_types = %w(image/jpeg image/png image/webp image/jpg) And in…
Wordica
  • 2,427
  • 3
  • 31
  • 51
5
votes
0 answers

How can I use transparent webm for Android?

I am trying to use some video resources. And I wanna get rid of the background and change the color as I want. I used VideoView for easy implementation. However, it gave black background. I don't want that. So, I am trying to use…
c-an
  • 3,543
  • 5
  • 35
  • 82