If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Putting logo on a image

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-05-06, 17:07
myle myle is offline
(Making Your Life Easy)
 
Join Date: Feb 2004
Location: New Zealand
Posts: 1,143
Putting logo on a image

I can get user to upload images to my web site

but I want to add some text to the Image "copyright [username]"

can someone point me to the right place
__________________
hope this help

See clear as mud


StePhan McKillen
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Progaming environment:
Access based on my own environment: DAO3.6/A97/A2000/A2003
VB based on my own environment: vb6 sp5
ASP based on my own environment: 5.6
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
MYLE
Reply With Quote
  #2 (permalink)  
Old 12-07-06, 03:58
myle myle is offline
(Making Your Life Easy)
 
Join Date: Feb 2004
Location: New Zealand
Posts: 1,143
ok heaps of readers

and update

well I can tell if the upload file is a jpg by

done this MY WORK

Code:
   Set fso = CreateObject("Scripting.FileSystemObject")
   Set f = fso.GetFile(FilePalth)
   Set ts = f.OpenAsTextStream(ForReading,TristateUseDefault)
   Tree =  mid(ts.Readline,1,2)
   ts.Close
   If Tree = Chr(255) & Chr(216) Then
      OPen_JPG = true
      MoveAFile(FilePalth)
   else
      OPen_JPG = false
      DeleteAFile(FilePalth)
   end if
above code 4 hours work on the web

just the need the text to image thing I'll be a happy camper
__________________
hope this help

See clear as mud


StePhan McKillen
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Progaming environment:
Access based on my own environment: DAO3.6/A97/A2000/A2003
VB based on my own environment: vb6 sp5
ASP based on my own environment: 5.6
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
MYLE

Last edited by myle; 12-07-06 at 04:05.
Reply With Quote
  #3 (permalink)  
Old 12-08-06, 11:20
jzelos jzelos is offline
Registered User
 
Join Date: Dec 2006
Location: UK
Posts: 6
The only way I know of doing this is with a COM Component or in ASP.Net. Would be a real pain to do in regular ASP.
  1. load as binary
  2. uncompress in mem to BMP
  3. Add text (Font Bitmask + AND?, scaling?)
  4. recompress to Jpg
  5. Save as binary

I know nothing about how the Jpg compression routines work so can't really help there. Pretty sure I've used FSO and RS.GetChunk or similar to save posted binary files before though in lieu of an uploading component, may be able to find some code if needed.

J
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On