PHP code example of slaxweb / image-processor

1. Go to this page and download the library: Download slaxweb/image-processor 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/ */

    

slaxweb / image-processor example snippets


$config = new \SlaxWeb\ImageProcessor\ConfigImage();
$config->path("/path/to/images");
// or $config->path = "/path/to/images/";
$image = new \SlaxWeb\ImageProcessor\Image($config);

$image->setConfig($config);

$image->loadImage("imagename.jpg");

$image->loadImageBase64($base64String);