bigtimslim Posted April 12, 2008 Share Posted April 12, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/100748-solved-crop-image-accoring-to-user/ Share on other sites More sharing options...
pocobueno1388 Posted April 12, 2008 Share Posted April 12, 2008 You can use scripts the use AJAX, such as this one: http://www.artviper.net/crop.php Quote Link to comment https://forums.phpfreaks.com/topic/100748-solved-crop-image-accoring-to-user/#findComment-515313 Share on other sites More sharing options...
bigtimslim Posted April 12, 2008 Author Share Posted April 12, 2008 That is very cool and just what I need. The page says to drop them a line if interested in the script. Is it free? Thought I'd see if you know before contacting them Quote Link to comment https://forums.phpfreaks.com/topic/100748-solved-crop-image-accoring-to-user/#findComment-515320 Share on other sites More sharing options...
pocobueno1388 Posted April 12, 2008 Share Posted April 12, 2008 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/ Quote Link to comment https://forums.phpfreaks.com/topic/100748-solved-crop-image-accoring-to-user/#findComment-515322 Share on other sites More sharing options...
bigtimslim Posted April 12, 2008 Author Share Posted April 12, 2008 thanks for the links. Quote Link to comment https://forums.phpfreaks.com/topic/100748-solved-crop-image-accoring-to-user/#findComment-515340 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.