Support for webp images

  • I would like to see webp support for Woltlab Core.


    The WebP format reduces file size more than standard JPEG compression while maintaining similar or better image quality, the image format developed by Google for web graphics it's becoming very common...


    As of 2019, WEBP files are supported by most web browsers.

    Best Regards,
    Evandro (aka e.meneses)


    Help translate Woltlab: I'm in!

  • PHP has a function called imagecreatefromwebp that can be used to convert webp images to JPEG.


    Shouldn't be hard to implement that while uploading the file...

    PHP
    <?php
    // Load the WebP file
    $im = imagecreatefromwebp('./example.webp');
    // Convert it to a jpeg file with 100% quality
    imagejpeg($im, './example.jpeg', 100);
    imagedestroy($im);
    ?>

    Best Regards,
    Evandro (aka e.meneses)


    Help translate Woltlab: I'm in!

  • Matthias Schmidt

    Changed the title of the thread from “Suppor for webp images” to “Support for webp images”.