PHP code example of cjrasmussen / image

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

    

cjrasmussen / image example snippets


use cjrasmussen\Image\Resize;
use cjrasmussen\Image\Text;

Resize::fitToImage($dst, $src);

Text::write($dst, 'Hello World', 'MyFont.ttf', 32, '880000'. 20, 20);