I'm trying to Crop the Image, then take the result image And save in directory on the server return url of this image i need to send as a posted file to http handler(same thing like after we choosing file from dialog box,then it will converted as posted file so that we can get file name and file content).And i dont have a chance to edit http handler i need to send croped imge url as a posted file.
Please help me out. thanks
you can use Jquery plugins to accomplish your task. as i am not done any kind of cropping, but i found a link which may help you. though you can find many plugins for crop in Jquery. Jquery crop plugins
here is the code I used to crop images through vb.net,but first you should download this control :
<asp:Panel ID="pnl" runat="server" HorizontalAlign="Right" Font-Names="Tahoma"
Font-Size="15pt">
Upload your picture
<br />
<asp:Panel ID="croppnl" runat="server" HorizontalAlign="Left" Width="810px">
<asp:Image ID="Image1" runat="server" />
<cs:CropImage ID="CropImage1" runat="server" Image="image1"
IsInUpdatePanel="False" />
<asp:Button ID="cropbtn" runat="server" CausesValidation="False"
Font-Names="Tahoma" Text="Crop" />
<br />
</asp:Panel>
Codebehind:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Image1.ImageUrl = "~/Image.jpg"
End Sub
Protected Sub cropbtn_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cropbtn.Click
CropImage1.Crop(MapPath("croppedpictures.jpg"))
End Sub
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.