For some years, I was subscribed to The Hindu and Economic Times alone; but when the sales person of Times of India forced me to subscribe with offers, I was kinda reluctant and finally subscribed just for the offer. I didn't like the Arnab Goswami of Times Now and still don't like him. Now, it looks like Times of India is leading in terms of journalism, though I don't like how it's pushing AIADMK. At this moment, Times of India is a clear winner though The Hindu is trying with Wikileaks articles.
After seeing feature rich options in Imagick PECL extension at Mikko Koppanen 's (the author) website and also impressed with ImageMagick 's features, I have decided to use it for the PSD to XHTML conversion website that I'm architecting and managing. Since, the team wants programming help for converting PSD images, I have tried it (documentation is sparse on PSD handling) Converting PSD to PNG/JPEG/etc Note that, flattenImages() is needed for layered/multi-page PSD file. <?php $im = new Imagick('test.psd'); $im->flattenImages(); $im->setImageFormat('png'); $im->writeImage('test.png'); ?> Extracting PSD layers One by one <?php $im = new Imagick('test.psd'); $im->setImageFormat('png'); for ($i = 0, $num_layers = $im->getNumberImages(); $i $im->setImageIndex($i); $im->writeImage('layer' . $i . '.png'); } ?> Note that, there is a better version below In a single call with writeIm...
Comments