Code: Select all
<?php
$im = new Imagick("Senza titolo-1.psd");
for ($i = 0, $num_layers = $im->getNumberImages(); $i < $num_layers; ++$i) {
$im->writeImage('layer_' . $i . '.png');
}
$im->flattenImages();
$im->setImageFormat('png');
$im->writeImage('test.png');
?>https://drive.google.com/file/d/0Bzaq0S ... sp=sharing
I see that exports 3 black arrows while the psd contains a single blue arrow. how do I fix it?
ps: I'm okay with any method, even without Imagick