when we upload our profile image it allow us to crop it and upload on croped portion of image in database..
i want this ability before i saved it in database..
how we can do this..?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
vijayPosted May 31, 2014, 8:12 AM
Refer the below link to do crop the image..........
http://vdsite.com/Articles/185/Image-cropping-using-jquery-in-Asp.net
ajay rajuPosted Mar 1, 2010, 2:13 AM
first u take dimensions of height and width in source page
code in aspx.vb page
if fileupload1.hasfile Then
dim memorystream as new system.io.memorystream(fileupload1.Filebytes)
dim imagefile as system.drawing.image = new system.drawing.bitmap(memorystream)
imagefile.GetThumbnailImage(100,100,Nothing,Intptr.Zero).save(server.mappath("your images folder" & fileupload1.postedfile.filename))
End if
image1.imageurl = "~/images/" & fileupload1.postedfile.filename
use this code make helps u.
if help this code then mark in the Accept Answer CheckBox.
Thanks.
Raaj KumarPosted Feb 27, 2010, 11:10 AM
Check this
http://www.mikesdotnetting.com/Article/95/Upload-and-Crop-Images-with-jQuery-JCrop-and-ASP.NET
Regards,
raaj