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
5
votes
0 answers

Cant save webp format with imagick

Im developing a panel in which Im uploading a jpg, it copies it, resizes it, saves another jpg and now I want also to be able to create a copy but using webp extension. Ive checked everywhere and couldnt find anyone with the same problem. Im running…
BachuArg
  • 71
  • 1
  • 3
5
votes
1 answer

How can I avoid dropouts when using (imagemagick) `mogrify` to convert webp files to animated gif?

Using this code mogrify -format gif *.webp that I found in another forum https://superuser.com/questions/1506337/batch-convert-webp-files-to-gif-files-offline/1506428 to convert a webp file, to an animated gif... I was wondering if anyone else…
LOlliffe
  • 1,647
  • 5
  • 22
  • 43
5
votes
2 answers

How to enable Webp for PHP 7 and MAMP

So my error is Call to undefined function imagewebp() I tried this command brew reinstall php72 --with-webp, but it does not work anymore. I don't know where and how I should change my conf file. If you have an idea, thank you
Amaury Leproux
  • 229
  • 1
  • 5
  • 21
5
votes
2 answers

Is it possible to read WebP images into a C# Bitmap object?

I am using .NET Core 3.0 MVC app with a file upload for users. These files assumed to be an image, but for obvious reasons, I validate the image before saving it to the server. Now I have ran into an issue, when a user tries to upload a JPEG image…
Sugafree
  • 631
  • 2
  • 14
  • 30
5
votes
4 answers

Add WebP to ImageMagick supported formats for PHP 7.3 on a WHM dedicated server

I am trying to add WebP to ImageMagick supported formats for PHP 7.3 on a WHM dedicated server. Whenever I was adding this question I saw other posts related to this problem but they don't have a solution as I tried everybody's recommendations from…
Victor Rusu
  • 107
  • 1
  • 1
  • 9
5
votes
1 answer

How to convert webp to gif?

How do I convert animated webp to gif in android?
5
votes
2 answers

How to load image formats based on browser support using CSS?

I would like to use the WebP image format in my CSS background-image property. But, since WebP is quite new and still not supported by all browsers new and old, I would also like to add support for a JPEG version of that image as a fallback. I know…
Sajib Acharya
  • 1,666
  • 5
  • 29
  • 54
5
votes
2 answers

Converting all images in a folder to .webp using python script

I've been working on images for a website and find out that .webp format is much more compact than .jpeg or .png find more on Docs. Now I have a folder with almost 25 images & I want to convert all into .webp format. Can anyone suggest me how to…
5
votes
2 answers

Node.js - convert webp to jpeg as a buffer (in memory)

Do you know any way I can convert an image/webp buffer to image/jpeg buffer without the need to use the filesystem? First I get the buffer with request-promise and then I would like to convert it and send it away in another HTTP call. I found this…
Lukáš Křivka
  • 953
  • 6
  • 9
5
votes
3 answers

Support WebP using HTML Picture or server side via http headers?

It seems there are two ways to show WebP images to browsers that support it. Use the HTML Picture element Detect on the HTTP server. So request /image…
AndrewHarvey
  • 2,867
  • 11
  • 21
5
votes
1 answer

Create webp images (as alternative version) from original images in Vue CLI 3

I have simple Vue project on newest Vue CLI 3 (I'm newbie on both). In src I have jpg / png images in 100% quality. By default cli while build will make dist directory with my images adding hash (image.jpg to image.7a97ca45.jpg) but without any …
chojnicki
  • 3,148
  • 1
  • 18
  • 32
5
votes
2 answers

Error with .webp images when using Active Storage on Heroku

When I use Active Storage, and when someone upload a .webp image, and when I run file.attach(io: webp_file, filename: 'file.webp') it works, and then ActiveStorage automatically run a job ActiveStorage::AnalyzeJob But this job raises…
Nicolas Maloeuvre
  • 3,069
  • 24
  • 42
5
votes
2 answers

How to convert JPG image to WEBP format in Node.js?

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-converter which is a small vice- versa. But I m getting…
S mahat
  • 93
  • 1
  • 1
  • 9
5
votes
0 answers

WebP format not working in IE browser

I have been trying to compress icons and images used in my application ,so that the application will render fast. I used WebP tool for doing the same.I came to notice that Google chrome supported the format easily,but IE browser doesn't. I have…
arun abraham
  • 147
  • 2
  • 12
5
votes
0 answers

Providing a fallback for webp images within svg elements without additional requests

I have an element using a .webp image in the element. It works for Chrome and Opera, but in Firefox, nothing is displayed, so I tried adding another element containing the png. Now it works in Firefox, but upon inspection in…
JAT86
  • 997
  • 12
  • 24