PHP code example of hherold / deepzoom
1. Go to this page and download the library: Download hherold/deepzoom 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/ */
hherold / deepzoom example snippets
$options = [
'path' => 'tiles',
'format' => 'jpg',
'watermarkFile' => 'watermark.png',
'watermarkLevel' => 10,
];
$source = 'images/test.jpg';
$folder = null;
$file = null;
// Setup Deepzoom
$deepzoom = Hherold\Deepzoom\DeepzoomFactory::create($options);
// folder, file are optional and will default to filename
$response = $deepzoom->makeTiles($source, $folder, $file);