Jump to content

[SOLVED] crop image accoring to user


bigtimslim

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/

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.