News Feed
Jobs Feed
Sections




News Archive
Mikko Koppanen's Blog:
Trimming an image
November 02, 2007 @ 12:58:00

Mikko Koppanen shows how, in his latest blog post, to take an image and trim it down with Imagick to get rid of extra surrounding background information.

Especially product images usually "suffer" from this issue; the product itself is composited on a white background and there are large areas of white around the object.

This is a simple example to demonstrate how to easily trim the areas off the image and only display the parts where the object lies.

His example code, a quick 16 line affair, takes in the test image, looks for a RGB value given and uses the built-in trimImage function to reduce its size.

0 comments voice your opinion now!
trim image extra background imagick example trim image extra background imagick example


blog comments powered by Disqus

Similar Posts

Content with Style: Custom Zend Form Image Upload Element

PHPMaster.com: Crop and Resize Images with ImageMagick

Rasmus Lerdorf's Blog: ZeroMQ + libevent in PHP

Zend Developer Zone: Cool Image Thumbnail Class

PHPBuilder.com: Using the ADOdb library with Oracle and PHP


Community Events











Don't see your event here?
Let us know!


unittest opinion development language testing conference functional introduction interview example zendframework2 community phpunit framework application release series tool code podcast

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework