I am trying to convert a large (>1gb) tiff image into a pyramidal tiff with tile-geometry at 256x256. At the moment I am currently running this command in php:
exec("convert nopyramid.tif -define tiff:tile-geometry=256x256 -compress jpeg 'ptif:withpyramid.tif'");
I am trying to figure out how to use imagick to create a tiled tiff. I can't find any information that refers to this possibility except another stack exchange question listed here:
The reason I would like to use imagick's API is because, from what I have found, it will callback "progress" during the conversion if it's set. The above "exec" conversion will not report anything during the process even if you designated "-monitor" after "convert."
$image = nopyramid.tif";
$im = new Imagick();
$im->pingImage($image);
$im->readImage($image);
$im->setImageFormat('ptif');
$im->transformImage("256x256","256x256");
$im->writeImage('withpyramid.tif');
This doesn't seem to work however. Any thoughts/tips are greatly appreciated!