Forums

ASP

This topic is locked

Smart Image Processor IF PDF

Posted 02 Aug 2006 18:48:12
1
has voted
02 Aug 2006 18:48:12 Jay Zwagerman posted:
How would I adjust the code to specify a static thumbnail if I upload a pdf. Currently I am using smart image processor to create thumbnails and when those thumbnails are clicked, the user downloads the full image. I would like to use a static download here jpg whenever a pdf is uploaded because obviously you can't make a thumbnail of a pdf.

Right now my code looks like this

<%
IF (rsJustin.Fields.Item("StyPhoto2".Value) <> "" Then%>
<a href="javascript:document.pic2.submit();"><img src="graphics/<%= Thumbnail("_small",(rsJustin.Fields.Item("StyPhoto2".Value)) %>" alt="" name="picture2" border="0" id="picture2"></a>
<%End IF%>



The javascript:document.pic2.submit(); is just referring to something that forces a download of the image.

Any help is appreciated.

Thanks

Reply to this topic