Jump to content

Recommended Posts

I have been playing around the gd and doing things to images uploaded from the user. Part of this involves resizing and then cropping from center to the size I need. Sometimes this doesn't work out well and it would be better if the user could specify where to crop.

 

I was wondering the different ways one could go about doing this. In my head I see the outline of a rectangle that can be moved around inside the image. Could I somehow use imagemaps and redraw the rectangle with gd on click?? There has got to be a better way :)

 

I'm just looking for some direction on what might be the best way to go about this. thanks.

Link to comment
https://forums.phpfreaks.com/topic/100748-solved-crop-image-accoring-to-user/
Share on other sites

You can find many similar scripts on Google if that one doesn't work out.

http://www.ajaxprogrammer.com/?p=9

http://www.dhtmlgoodies.com/index.html?whichScript=image-crop

 

Here is a site that gives a list of image cropping scripts:

http://webtecker.com/2008/03/14/list-of-image-cropping-scripts/

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.