SfCropper Plugin…
March 25, 2008
Today, I wrote a simple plugin for Symfony, my favorite PHP MVC framework. It uses scriptaculous.js and Cropper.js (developed by David Spurr ) to crop images and create cropped images using PHP GD library.
![]()

You can download it by clicking here! Installation process is as simple as other Symfony plugins:
1.Unpack and Copy plugin files to your project plugin folder.
2. Enable module in your `settings.yml`:
{{{
all:
.settings:
enabled_modules: [default, sfCropper]
}}}
3. Put sfCropper web folder into your project web folder.
4. Clear you cache:
{{{
symfony cc
}}}
5.Use it:
<?php
use_helper(‘cropper’);
//cropper_image($image_name,$image_id=’crop1′,$default_crop=1)
cropper_image(‘test.jpg’);
?>