Aurigma Forums
»
Legacy Products
»
Archive
»
Other Products
»
Text and Image Processor output in the same ASP
Rank: Member
Groups: Member
Joined: 5/19/2004(UTC) Posts: 2
|
I'm trying to display text on top of a picture I'm resizing with Image Processor 1.9 but as I insert some text in the ASP page instead of the bitmap I get only a 'text version' of the image. I looked at the examples but couldn't find anything to solve my problem, nor in the knowledge base. How can I put text/html around a processed image ?
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration Joined: 8/2/2003(UTC) Posts: 876
Thanks: 2 times Was thanked: 27 time(s) in 27 post(s)
|
Try the following method: create two files, e.g. ImageGenerator.asp and page.htm. ImageGenerator.asp will save the image only, the page.htm will contain necessary text and image produced with ImageGenerator.asp (included with <IMG src=ImageGenerator.asp> tag). [ImageGenerator.asp] Code:<%
Dim objRaster
Set objRaster = Server.CreateObject("GraphicsProcessor2002.RasterObject")
objRaster.LoadFile Server.MapPath("file.jpg")
' Do something...
Response.ContentType = "image\jpeg"
objRaster.SaveStream Response
%>
[page.htm] Code:<HTML>
<BODY>
<P>Some text...</P>
<P><IMG src="ImageGenerator.asp"></P>
</BODY>
</HTML>
So user never navigate ImageGenerator.asp directly, but he goes to page.htm to see the image. It think it is what you want. Edited by user Monday, December 24, 2007 5:36:19 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Member
Groups: Member
Joined: 5/19/2004(UTC) Posts: 2
|
Yes! Setting the response mime type and calling the resize script inside the <img> tag did the trick ! Thank you! drex Edited by moderator Tuesday, January 3, 2017 8:45:15 AM(UTC)
| Reason: Not specified
|
|
|
|
Aurigma Forums
»
Legacy Products
»
Archive
»
Other Products
»
Text and Image Processor output in the same ASP
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.