JayVee Posted October 2, 2008 Share Posted October 2, 2008 I'm looking for code/files to allow a user to submit a passport type image. Ultimately I want the user to submit an image, be asked to crop this image via an interface and the resulting cropped image to be submitted. Is it possible to set the constraints in code so that the images are proportionally the same? Can anyone recommend a simple crop image editor using php? Quote Link to comment Share on other sites More sharing options...
zq29 Posted October 4, 2008 Share Posted October 4, 2008 You will not be able to "interactively" crop an image with PHP alone, you'd need JavaScript to build the interface with, which I'd imagine is where the proportional restraints will be managed, though backed up with PHP to add a layer of anti-tampering. You'd pass the coordinates generated by your JavaScript to either PHPs GDLib functions, or something like ImageMagick. Quote Link to comment Share on other sites More sharing options...
CroNiX Posted October 4, 2008 Share Posted October 4, 2008 Heres a good start. Ive used this on several sites. Awesome... http://tools.uvumi.com/crop.html Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.