开发者

How to create a thumbnail image of html content stored in a database

开发者 https://www.devze.com 2023-01-27 08:37 出处:网络
If you were to convert this html content into a small thumbnail image , how would you do it? P.S. I\'m trying to do this to allow users on my site to browse through their posts(containing html elemen

If you were to convert this html content into a small thumbnail image , how would you do it?

P.S. I'm trying to do this to allow users on my site to browse through their posts(containing html elements (e.g. strong, i, img tag's开发者_运维知识库).


try http://www.zubrag.com/scripts/website-thumbnail-generator.php


See here:

http://www.thumbalizr.com/index.php

They have a pretty decent simple API

Simple syntax to use the API: http://api.thumbalizr.com/?url=http://www.ford.de&width=250

Parameter:

Check http://api.thumbalizr.com for more details.

So you can simply have <img src='http://api.thumbalizr.com/?url=http://www.yourdomain.com&width=250' />

Also see http://www.websnapr.com/ and their implementations page

0

精彩评论

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

关注公众号