PHP code example of drroach / dynamic-image

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

    

drroach / dynamic-image example snippets



tings = [
    'filename' => $_GET['filename'],
    'width' => $_GET['width'],
    'height' => $_GET['height']
];

$DI = new DynamicImage($settings);
echo json_encode($DI->file);


tings = [
    'filename' => $_GET['filename'],
    'width' => $_GET['width'],
    'height' => $_GET['height'],
    'image_directory' => 'images/'
];

$DI = new DynamicImage($settings);
echo json_encode($DI->file);