I'm using ASPJpeg thumbnail creator and I'm facing a strange problem, sometimes when I access the page with the thumbnails generated with the component, all the thumbs load/looks fine, but sometimes some of the thumbs are not loaded, and if I refresh the page sometimes all are loaded fine.
I'm using the script below, with "Send Binary", and I'm calling it in HTML with <img src="scriptname.asp?photo=
Waiting, thank you.
Set Jpeg = Server.CreateObject("Persits.Jpeg")
ResizePath2 = "e:\home\site\web\photos\"&request("photo")&""
Jpeg.PreserveAspectRatio = True
L = 100
If Jpeg.OriginalWidth > Jpeg.OriginalHeight Then
Jpeg.Height = L
Jpeg.Width = L
Jpeg.Sharpen 1, 120
xCropWidth = 100
xCropHeight = 80
xOffset = int((Jpeg.Width-xCropWidth)/2)
yOffset = int((Jpeg.Height-xCropHeight)/2)
Jpeg.Crop xOffset, yOffset, Jpeg.Width-xOffset, Jpeg.Height-yOffset