Here's to the crazy ones.Kids of Mac toys often attribute everything to Steve Jobs. But, I recently happened to read the people and story behind the inspiring "Think Different" ad. I think, everyone must read it--to be inspired.
The misfits. The rebels. The troublemakers.
The round pegs in the square holes.
The ones who see things differently.
They're not fond of rules, and they have no respect for the status quo.
You can quote them, disagree with them, glorify and vilify them.
About the only thing you can't do is ignore them because they change things.
They push the human race forward. And while some may see them as crazy, we see genius.
Because the people who are crazy enough to think they can change the world, are the ones who do.
-- Think different, Apple's TV commercial
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