| Recommend this page to a friend! |
| Author | ||
![]() |
|
Innovation award![]() Nominee: 2x | |||||||||||||||||||
| Classes of Carlson A. Soares | > | Image Crop | > | Download .zip .tar.gz | > | > | > | |||||
|
|||||||||||||||||||||||
| Groups | Applications | |||||||||
| Groups | ||
| PHP 5 | Classes using PHP 5 specific features | View top rated classes | |
| Graphics | Colors, images, charts and picture formats | View top rated classes | |
| AJAX | Interact with the Web server without page reloading | View top rated classes |
| Innovation Award | ||
![]() September 2010 Number 3 Prize: One subscription to the PDF edition of the PHP Architect magazine |
Many Web applications require that the users submit images with certain sizes or proportions. Often the users do not have the images in the right sizes, so they need to crop them to match the requirements. This class helps achieving that goal with a little help of JavaScript to let the user crop the images on the browser side. Then the images are cropped on the server side according to the coordinates the user has defined with a visual user interface presented by the class. Manuel Lemos |
| User ratings | ||
| Ratings | ||||||||
|---|---|---|---|---|---|---|---|---|
| All time: | ||||||||
| Month: | ||||||||
| Applications that use this class | ||
| File | Role | Description | ||
|---|---|---|---|---|
| Class | This class work with files and paths, used by imagecrop | |||
| Class | Image manipulation class, used by imagecrop | |||
| Class | The main class, this do the crop and print the user interface | |||
| Example | Test file, see the thing working | |||
| Files | / | |||
| File | Role | Description |
|---|---|---|
| |
Data | background image of the selected area |
| |
Data | Image to show when the thumb is bein generate |
| Download all files: image-crop.tar.gz image-crop.zip |