PHP code example of jackal / image-merge

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

    

jackal / image-merge example snippets


[...]
echo $imageBuilder->getImage()->toPNG()->getContent();  

$imageBuilder->resize(620,null);
#or
$imageBuilder->resize(null,200);

$imageBuilder->rotate(180);