Generate html thumbnail directly

You can generate thumbnail for a web page with html snapshot in several ways.

You can do in an easy way:

snap.SnapUrl(”www.google.com“, “1.jpg”)

snap.GetThumbnailImage(…)

 

A little complexer but more flexible way in case that you don’t need the big image

snap.SnapUrl “http://www.google.com“, “*”
 
‘Get the compressed image bytes out
‘it uses the extenstion to determine the file format
‘Get the thumbnail image bytes and save to file.
out = snap.GetThumbImageBytes(”*.jpg”, 100, 100, 1)
Set adoStream = CreateObject(”ADODB.Stream”)
adoStream.Type = 1
adoStream.Open
adoStream.Write out
adoStream.SaveToFile “1s.jpg”

Leave a Reply

You must be logged in to post a comment.

buy cheap cialis cheap Cialis (Tadalafil) buy cialis online buy online cialis free cialis Cialis Professional cheap cialis professional price cialis professional buy cheap cialis super active buy levitra professional viagra super active buy cheap viagra soft tabs levitra plus price cheap cialis soft tabs all pills The Best Pharmacy Online-Offers Need the Cheapest Drugs? Oun Pharmacy Store Is the Right Choice buy vpxl VPXL (Very Penis Extended Long) Êóëèíàðíàÿ êíèãà VPXL vpxl online