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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Raaj KumarRank #7,836 · 233 reputationPosted Feb 27, 2010, 6:10 AM EST
Check this
http://www.mikesdotnetting.com/Article/95/Upload-and-Crop-Images-with-jQuery-JCrop-and-ASP.NET
Regards,
raaj
ajay rajuRank #4,639 · 333 reputationPosted Feb 28, 2010, 9:13 PM EST
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.
vijay172 reputationPosted May 31, 2014, 4:12 AM EDT
Refer the below link to do crop the image..........
http://vdsite.com/Articles/185/Image-cropping-using-jquery-in-Asp.net