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
0
votes
1 answer

Get the file size from a WebP file header

https://developers.google.com/speed/webp/docs/riff_container I’ve got a WebP file (about 22 kilobytes), and the hexadecimal of the first 12 bytes is 524946461c57000057454250. The first and last 4 bytes make sense (ASCII "RIFF" and "WEBP"), but I…
Eric Cochran
  • 8,414
  • 5
  • 50
  • 91
0
votes
1 answer

Reverse engineering Obb image files - unkown .pak.img;notc?

I'm attempting to reverse engineer the data element of an android app - simply because i want a couple of the images, but I've come across a stumbling block. The files are in a .pak extensions i don't recognize and can't seem to do anything with.…
user2747536
0
votes
3 answers

Using WebP as a background image in SVG

So I would like to do the same, or similar, to what I would do in HTML: But, obviously this won't work:
jBoive
  • 1,219
  • 1
  • 14
  • 40
0
votes
1 answer

Enable Google App Engine Java to serve webp images when the client accepts them

I have a Google Appengine Java application that I use to host a simple static website. My .html, .css, .jpg files go in the war directory. Here's my web.xml
AmaltasCoder
  • 1,123
  • 3
  • 17
  • 35
0
votes
1 answer

Why does Google serve JPEG instead of WebP in image search?

With all the fuss about WEBP and how cool it is, I'm still getting JPEG thumbnail images in image search on google.com in year 2016, even though Chrome browser tells in HTTP header it accepts webp images: accept:image/webp,image/,/*;q=0.8 Why is…
metalim
  • 1,479
  • 1
  • 12
  • 22
0
votes
0 answers

How to get Image load time

I am working as back-end developer and I am new to html. Recently I am considering using webp instead of jpg for certain requests. Webp is definitely much smaller but I need data to show how much faster when I switch from jpg to webp in html. I…
0
votes
1 answer

nginx location block comprehension and using passenger with named location blocks

I have a couple of questions regarding my nginx configuration as it pertains to serving webp files as well as using named locations with try_files. Current config: server { listen 80; server_name assets.manager manager; …
0
votes
0 answers

Faster web experience when available is gold

In node.js can I take the binary straight from the canvas without calling toDataURL (which would convert it to 3x size base64)? So I would then have binary (example: open up any image with a text editor) Then convert that into webp base64 (?) I've…
Ben Muircroft
  • 2,936
  • 8
  • 39
  • 66
0
votes
1 answer

Windows batch : find string contains another string inside a for loop

I am trying to convert a set of PNG images to WEBP images using cwebp encoder. I managed to do it using a JAVA program but now I want to write a batch file to do this task. I already got metal03326's solution after some searching. But I want one…
userv
  • 2,527
  • 4
  • 27
  • 36
0
votes
3 answers

PHP detect if file is webp image

I'm trying to check if a file is a webp image in PHP if (false != imagecreatefromwebp($filename)) { //do something } But I get the following error Warning: imagecreatefromwebp(): 'test.webp' is not a valid WEBP file Same file…
cksrc
  • 2,062
  • 3
  • 24
  • 39
0
votes
0 answers

BitmapFactory.decodeStream returns NULL values

This function returns Null in some images, the image extension is webp, in the emulator and I don't have problems, but one client has a Lenovo S6000 and some pages return NULL values... The question is: Does another method exist to read images from…
0
votes
0 answers

How do I handle users uploading webp images?

So, I have a simple uploader that lets users upload images and then view them somewhere. Now the issue is that many users have started uploading webp images (they just download images from certain sites visited via a supported browser like Chrome…
0
votes
2 answers

how to identify webp image type with python

I want to identify the type of a Image to tell whether it's a webp format or not, but I can't just using file command because the image is stored in memory as binary which was download from the internet. so far I can't find any method to do this in…
armnotstrong
  • 8,605
  • 16
  • 65
  • 130
0
votes
1 answer

How Can I decode and encode from Webp using Libwebp?

Im having trouble encoding and decoding from webp using libwebp in c++. I built this test application which takes webp file i created (which looks fine in chrome), and tried decoding it to rgb, and back to webp, just to understand how to use it, and…
user1612927
  • 95
  • 1
  • 5
0
votes
1 answer

dwebp increasing the jpeg original jpeg file size

I used cwebp to convert my jpg image to web. Now I am using dwebp to convert it back but its increasing in size from original one. Is there any way to control the file size in dwebp.
shilpi_agrawal
  • 108
  • 1
  • 9