开发者

Create Thumbnail from url like Digg in asp.net/C#

开发者 https://www.devze.com 2022-12-25 18:57 出处:网络
How I can create a thumbnail from a URL? For example: Like on Digg, when I submit a link, Digg choses a Thumbnail from any images on 开发者_如何学Pythonthat URL.

How I can create a thumbnail from a URL?

For example:

  • Like on Digg, when I submit a link, Digg choses a Thumbnail from any images on 开发者_如何学Pythonthat URL.
  • Or like Facebook, when I submit a link, I can chose a thumbnail for that link.

So, how I can do that with ASP.Net/C#. I just want to create a thumbnail (not a screenshot of the web page).


To create a screenshot from a web page you need to have an interface to a layout engine like Gecko or Webkit. You may use khtml2png for creating web page screenshots.

To create thumbnails from the web page you have to parse the web page's source, download the image links and resize them to the given thumbnail size.


You can try my C# wrapper for CutyCapt.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号