PHP code example of devel96 / image-converter

1. Go to this page and download the library: Download devel96/image-converter library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

devel96 / image-converter example snippets




use Devel96\Converter\ImageFacade;

ImageFacade::convertToWebp(__DIR__ . '/images/1.jpg');



use Devel96\Converter\ImageFacade;

ImageFacade::convertToWebp(__DIR__ . '/images/1.jpg', 60);