Here you can find a small collection of sample code I’ve written, as an example of my capabilities and skills.
PHP-Smart-Crop (PHP Class)
Smart-Crop is a proof of concept for a method of intelligently cropping images. Imagine you need a user-provided image that will be presented to viewers in three different resolutions, depending on the client accessing it. The user uploads a 500×200 image. You could display cropping controls and force the user to choose an area to display for each client, but that adds friction and confusion to the user experience, Instead, smart-cropping analyzes the image by color and entropy to find the most “interesting” area (at least as best as an algorithm can identify it). Then it weights the “direction of interest” to identify which portion of the image to show more of, while maintaining the position of the focus as close to a rule of thirds line or center line as possible. Example: These images are generated live from the same source image. The only variable given to the class is target width and height. (Photo credit to Wikipedia Commons)Smart Crop 250×150
Smart Crop 150×150
Smart Crop 100×150