webp Questions

2

I already tried this: from PIL import Image im = Image.open('this.webp') im.save('that.gif', 'gif', save_all=True) which is giving me this error TypeError: unsupported operand type(s) for &a...
Telangiectasis asked 25/8, 2018 at 10:33

3

Solved

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 i...

3

Solved

I'm facing a problem, I just can't seem to find out what the problem is, I have: <picture> <source type="image/webp" srcset="/images/meh_logo.webp"> <img src="/images/meh_logo.png...
Manilla asked 3/12, 2018 at 16:54

2

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 interest...
Magavern asked 12/10, 2014 at 20:57

3

I m trying to upload an image using react.Js and save that image in node.Js using multer middleware. This is working perfectly but now I want to convert that image to WEBP format using webp-convert...
Curve asked 22/6, 2018 at 12:5

2

Solved

I'm trying to convert .jpg images to webp format using PIL. I'm using the this code: from PIL import Image import glob, os for infile in glob.glob("*.jpg"): file, ext = os.path.splitext(infile)...
Eliathas asked 8/11, 2013 at 13:49

4

Solved

I need to convert mp4 video(1280×720) to webp file(512x512) such that the resulting webp file maintains aspect ratio and also gets entirely contained in 512x512 and the uncovered areas at the top a...
Binary asked 10/2, 2021 at 20:42

6

Solved

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 ?
Doscher asked 1/12, 2011 at 11:38

5

Solved

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 giv...
Kutch asked 23/10, 2015 at 6:40

4

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_r...
Viewy asked 11/10, 2014 at 12:11

1

Solved

Due to a recent vulnerability in libwebp before version 1.3.2 (CVE-2023-4863) I want to find out what libwebp version the Windows builds of PHP (downloadable here: https://windows.php.net/) is usin...
Harmsworth asked 11/10, 2023 at 12:55

3

Solved

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 sup...
Mammoth asked 30/3, 2022 at 16:23

1

Anyone know if it's possible to convert a Bitmap to a WebP image using C#? Been Google-ing around but wasn't able to find anything for C#. I found this: mc-kay/libwebp-sharp · GitHub but it doesn...
Statuary asked 4/11, 2012 at 16:27

1

this is my htaccess cache-control policy: <FilesMatch "\.(flv|gif|jpg|jpeg|png|ico)$"> Header set Cache-Control "max-age=31536000" </FilesMatch> <FilesMatch "\.(js|css|pdf|swf)$"&g...
Contrabassoon asked 26/8, 2016 at 10:27

22

Solved

How can I detect support for WebP via Javascript? I'd like to use feature detection rather than browser detection if possible, but I can't find a way to do so. Modernizr (www.modernizr.com) doesn't...
Pines asked 6/4, 2011 at 21:20

7

Solved

How do you detect in CSS if webp images are supported? .home-banner-background { background-image: url('img/banner.jpg'); } /*Here is an if statement that will check if webp is supported*/ { ....
Levite asked 5/8, 2019 at 13:5

4

Solved

I want to generate webp files from jpg/png from webpack. To do that i using image-webpack-plugin (https://github.com/tcoopman/image-webpack-loader) In the plugin documentation it's written that th...
Shiah asked 12/11, 2019 at 22:48

1

Solved

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 t...
Quitrent asked 24/6, 2018 at 4:35

1

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 .web...
Ebon asked 24/8, 2021 at 12:14

5

Solved

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 ...
Inhibit asked 16/12, 2016 at 13:44

2

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/JP...
Cockade asked 13/11, 2018 at 9:11

3

I am trying to use webp images throughout my site due to the better compression. However I am aware that safari does not support webp. The images are loaded using background-image: url("img/img.web...
Mozell asked 29/3, 2020 at 11:45

3

Solved

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 ...
Schnurr asked 10/1, 2019 at 20:7

2

In order to speed HTML page loads, I've converted images to webp format and use the "picture" element as follows: <picture> <source data-srcset="images/gallery/urban.webp" type="image/we...
Centenarian asked 1/5, 2019 at 17:23

4

I have started using webp images in my site with <picture> tag. all set except this <section class="sec-bg" style="background: url('images/bg.jpg');"> I don't know, how to set the d...
Buber asked 27/6, 2019 at 13:31

© 2022 - 2024 — McMap. All rights reserved.