Hi,
I am using the AspJpeg component to resize my images. When I use .jpg images it works perfectly, but when I use a .gif image, I get a broken image.
I call the image using:
<IMG SRC="resize.asp?path=d:\mysite.com\html\home_logo.jpg&width=100">
Here is the resize.asp page:
<%
Set jpeg = Server.CreateObject("Persits.Jpeg"
jpeg.Open( Request("path"
)
' Set new width
jpeg.Width = Request("width"
' Set new height, preserve original width/height ratio
jpeg.Height = _
jpeg.OriginalHeight * jpeg.Width / jpeg.OriginalWidth
' Send thumbnail data to client browser
jpeg.SendBinary
%>
Can anyone who has experience with this script please tell me if they have any idea why this is happenning.
Thanks
I am using the AspJpeg component to resize my images. When I use .jpg images it works perfectly, but when I use a .gif image, I get a broken image.
I call the image using:
<IMG SRC="resize.asp?path=d:\mysite.com\html\home_logo.jpg&width=100">
Here is the resize.asp page:
<%
Set jpeg = Server.CreateObject("Persits.Jpeg"
jpeg.Open( Request("path"
' Set new width
jpeg.Width = Request("width"
' Set new height, preserve original width/height ratio
jpeg.Height = _
jpeg.OriginalHeight * jpeg.Width / jpeg.OriginalWidth
' Send thumbnail data to client browser
jpeg.SendBinary
%>
Can anyone who has experience with this script please tell me if they have any idea why this is happenning.
Thanks