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(““, “1.jpg”)



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

snap.SnapUrl ““, “*”
‘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.Write out
adoStream.SaveToFile “1s.jpg”