The script works, but it running too slow, compare to default processor 'GD', and working with it make me understand the way to execute terminal command in PHP
The output ( -o option ) will create a folder named {output}-files and {output}.dzi in current folder
So to create the output into seperate folder, we should use {real}/{path}/{output_name}, it will create the files name output_name.dzi inside the {path} folder and the {output_name}_files folder
Note that the folder should be created prior running the shell, better to check if the folder exist and clear it before run
// Check against the $destination path, create new folder if not exist
if (!is_dir($destination)) {
mkdir($destination, 0755, true);
} else {
removeContentOnly($destination);
}
Summary
As mentioned in ..., use this issue to figure about the slicer shell script
Reference
https://github.com/bangank36/zoomify-generator/issues/3#issuecomment-1473899880