PHP code example of skachcz / imokutr3

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

    

skachcz / imokutr3 example snippets




kachCz\Imokutr3\Imokutr;
use SkachCz\Imokutr3\ImokutrConfig;
use SkachCz\Imokutr3\Html;

$config = new ImokutrConfig();

$config->setConfig(
   __DIR__ . "/img/imokutr/original",
   __DIR__ . "/img/imokutr/thumbs",
   "/eso-tools/imokutr3/img/imokutr/thumbs",
   "default.jpg"
   );

$kutr = new Imokutr($config);


// original image is in /img/imokutr/original/img1.jpg
$img = $kutr->getThumbnail("img1.jpg", 200, 100, 'w');