rahultailwal Posted February 20, 2012 Share Posted February 20, 2012 Hi, I have two moving images in a web page. now i want to crop those images. i m not getting any way to get this done. I used a selection box who can select the portion of the two images but not getting the way to find the coordinates. Its easy to crop a single image. but what about croping two images together. Please reply to this post. Thanks Link to comment Share on other sites More sharing options...
[dx] Posted February 20, 2012 Share Posted February 20, 2012 Do you have some script? Link to comment Share on other sites More sharing options...
rahultailwal Posted February 20, 2012 Author Share Posted February 20, 2012 imagecopymerge() is a function is php to merge two images and for single image crop we use it. but now the question is we have two images with drag drop feature. and a selection box. now after clicking on the crop button the selected area of two images should be cropped to make a new image. now i not getting the way to continue. i m stuck after making the drag drop function. i need crop button functionality. See the image for better understanding. Thanks, Link to comment Share on other sites More sharing options...
[dx] Posted February 20, 2012 Share Posted February 20, 2012 Just a suggestion. I really don't know how to make it, but what about some <div> which is parent to those 2 images, and then work with javascript.. Link to comment Share on other sites More sharing options...
birbal Posted February 20, 2012 Share Posted February 20, 2012 In which context the images resides? canvas? or just DOM? Link to comment Share on other sites More sharing options...
rahultailwal Posted February 21, 2012 Author Share Posted February 21, 2012 the images are coming freely to the page. we can drag and drop the images and then after clicking on the crop button the function will do the rest. Reply soon plz. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.