简体   繁体   English

Asp.net MVC配置文件图像控件

[英]Asp.net MVC Profile image control

In my ASP.NET MVC site, the users need to upload profile pictures, and resize/crop and move the image until the user is satisfied (within the red border as shown here: http://imgur.com/GqeCTil ) 在我的ASP.NET MVC网站中,用户需要上传个人资料图片,并调整大小/裁剪并移动图像,直到满意为止(在红色边框内,如下所示: http : //imgur.com/GqeCTil

I've stumbled upon the http://imageresizing.net/ which is very fine, but i kinda need the front UI control for the users to use. 我偶然发现了http://imageresizing.net/ ,它很好,但是我有点需要前端UI控件供用户使用。

What is the easiest way to achieve this kinda control? 实现这种控制的最简单方法是什么? do i have to develop my own, or do you guys have any recommendations? 我必须自己开发,还是你们有什么建议?

If I understood your question, I added 2 links dealing with image re-sizing: 如果我理解您的问题,我添加了2个链接来处理图像调整大小:

  1. http://www.codeproject.com/Tips/481015/Rename-Resize-Upload-Image-ASP-NET-MVC http://www.codeproject.com/Tips/481015/Rename-Resize-Upload-Image-ASP-NET-MVC
  2. http://www.leniel.net/2012/04/resize-img-on-fly-aspnet-webimage.html http://www.leniel.net/2012/04/resize-img-on-fly-aspnet-webimage.html

I hope it helps, please let me know... 希望对您有所帮助,请让我知道...

Update : This link may help too (from comments) - 更新 :此链接可能也有帮助(根据评论)-

http://techslides.com/image-zoom-drag-and-crop-with-html5 http://techslides.com/image-zoom-drag-and-crop-with-html5

I think better way to achieve this kinda control via javascript libraries. 我认为通过javascript库实现这种控制的更好方法。 This pages contains demo. 此页面包含演示。

  1. Canvas and jquery example 画布和jQuery示例

  2. jQuery plugin that Upload Drag & Crop Image example 上载拖放图像示例的jQuery插件

I think the first one is better for your description. 我认为第一个比较适合您的描述。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM