PHP code example of tacnoman / thumcno

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

    

tacnoman / thumcno example snippets

bash
 $ sudo apt-get install php-gd # Ubuntu
 $ sudo yum install php-gd # CentOs
 $ brew install php-gd # Mac OS
bash
git clone [email protected]:tacnoman/thumcno.git
cd thumcno
composer install
php thumcno config # Follow the instructions
php thumcno serve
bash
php thumcno domain:add img.mydomain.com
bash
cd /path/to/thumcno
php thumcno config
php thumcno serve

; <your_domain>.ini
; Possible_sizes
[sizes]
thumb = 30x30
medium = 200x200
large = 800x800
ini
; <your_domain>.ini
[styles]
medium = 500x500
big = 800x700