Save image to folder

I want the user to upload an image of any size for the format (jpg, png, gif). After loading the image, I want it to crop the image (client side) using jquery and save the cropped image (php) to the application folder.

Please tell me a possible solution for this function to work normally.

+7
jquery php yii
source share
3 answers

Given that you already have PHP cropping code, use one of these plugins so that the user can determine how she wants to crop the image and provide the necessary data:

  • Guillotine : A very lightweight plugin that allows you to crop, scale and rotate images with touch support and respond ( demo ).

  • Jcrop : Allows you to deselect ( demo ).

0
source share

This is a simple cropping of images using jquery and php using cropbox.js

Please watch the following video

Simple cropping of images

0
source share

All Articles