Well.. I have been looking for a image upload with a crop and resize function..
Found a lot.
But I can find one where I can choose a MUST-BE width..
So that if my MUST-BE width is set to be 250px.
Then the crop should allow a minumum width, which should be the set MUST-BE width.
It should be possible to be bigger then the MUST-BE width while cropping, but after cropping, it should resize the width to be the set MUST-BE width..
Hope I make sense.
I found this: http://www.nwhite.net/2009/02/25/lassocrop-preview/
Which do most of the magic.
I just don’t know how to get PHP to do those actions after selected the right crop size?
And how to make the upload function to work with this.
here we can get x,y ,h and w. Then you can assign these values to four different hidden input fields for eg:
like that and using form action you can get all values at action page \
Using some php image functions we can crop images
imagecreatetruecolor();
imagecopyresampled();
imagegif() or imagejpeg() or imagepng ()
I think these can already know these basic php functions and how to use it Thanks