Jump to content

Passport Image


JayVee

Recommended Posts

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?

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.