Sunday, 15 April 2012

php - image position and clipping -


Someone knows how to place an image in the webpage, but both positions and clipping (maybe resizing too) are done by interactive Does the user go? I need this for my registration page, I have done some clipping and resizing from CSS and Javascript, and it does not really solve the problem, if it can be done by PHP, then it will be right! Thx

Here's a brief summary:

  • Validate the photo as correct type and dimension using PHP's image functions.

  • / li>

  • Show the user with a dragged DRAG in the browser, which they can resize and move can do. This is the crop area.

  • When you click on "Next", you transmit the server to x, y, width, height DIV or either AJX By or in the form of a hidden field.

  • Again, use the PHP image functions to crop the image, and then resize it.

  • Save it to a permanent place.

Post a comment for further specific answers.


No comments:

Post a Comment