Pumita70 wrote:several big sites are moving to WebP and leaving JPEG, if you see this https://caniuse.com/webp you can see that all browsers (but extinguished IE) support it. I'm working with jpg generation for decades and now this format (which is not brand new) is replacing it, especially in sites like online supermarkets and such.
And?? I dont care what supermarkets do. You are wasting your time.
20 years ago I would have agreed - but not today anymore. The Internet has become so powerfull, you even could use uncompressed bitmaps in your sites and it would not matter. Nowadays, people are streaming huge 4k videos from Netflix and you think about saving a few bytes using WebP instead of JPG? Thats ridiculous. You already wasted more of your highly valuable time than you can ever save by using WebP instead of JPG.
Pumita70 wrote:XAMPP comes with WebP installed but is wrongly compiled or something.
No, it does not. Why do you ask if you seems to know better? Your GD Library (which mostly is delivered with Xampp) probably does NOT support WebP. It is NOT sufficient to compile Xampp with the enable WebP flag. That only activates the API, but it does NOT deliver the related GD Library.
Run this program in your localhost environment:
- Code: Select all
<?php
$gd = gd_info();
echo "<pre>";
print_r($gd);
echo "</pre>";
?>
and show us the output. On my Xampp 8.1.4 Linux installation it shows this:
Array
(
[GD Version] => bundled (2.1.0 compatible)
[FreeType Support] => 1
[FreeType Linkage] => with freetype
[GIF Read Support] => 1
[GIF Create Support] => 1
[JPEG Support] => 1
[PNG Support] => 1
[WBMP Support] => 1
[XPM Support] =>
[XBM Support] => 1
[WebP Support] =>
[BMP Support] => 1
[AVIF Support] =>
[TGA Read Support] => 1
[JIS-mapped Japanese Font Support] =>
)
As you can see, "WebP Support" is EMPTY(!), not 1. There is no WebP support in the bundled GD Library of Xampp. Of course you can still go on and waste your time, it is your time.