Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
drex  
#1 Posted : Wednesday, May 19, 2004 2:45:00 AM(UTC)
drex

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 ?


Andrew  
#2 Posted : Wednesday, May 19, 2004 1:11:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 866

Thanks: 2 times
Was thanked: 26 time(s) in 26 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

drex  
#3 Posted : Wednesday, May 19, 2004 6:54:00 PM(UTC)
drex

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 03, 2017 8:45:15 AM(UTC)  | Reason: Not specified

Users browsing this topic
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.