Results 1 to 10 of 10
  1. #1
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Email address -> transparent GIF

    Have anyone come across a program which would <UL><LI>accept an email address in a specific font, typesize, colour and emphasis mode (bold? underlined?)<LI>create a transparent GIF of this email address, and store it in a specified directory<LI>generate the HTML code to enable the image to be embedded in text in a webpage[/list]I've searched on Google but can't find anything that meets most of these requirements.

    I know you can do this in almost any graphics program you care to mention, but I'd like to automate it as much as possible for an "end user"...

    Thanks

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  2. #2
    5 Star Lounger
    Join Date
    Apr 2003
    Location
    Hampshire, United Kingdom
    Posts
    602
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Email address -> transparent GIF

    You can certainly do it in PHP, although I'm not aware of any existing scripts that would do exactly that. Well, that's not quite true - jpgraph is almost certainly able to do it, but is probably a bit overkill! Could be useful for poaching code though. A Google search for "php text to gif" provides some other possibilities.
    Waggers
    If at first you do succeed, you&#39;ve probably missed something.

  3. #3
    5 Star Lounger
    Join Date
    Apr 2003
    Location
    Hampshire, United Kingdom
    Posts
    602
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Email address -> transparent GIF

    Update - this PHP class should do the job: PHP Classes - Class: Pictoru's GIF Text
    Waggers
    If at first you do succeed, you&#39;ve probably missed something.

  4. #4
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Email address -> transparent GIF

    GIF_TEXT: A Graphics Text Generator appears to do what you're after. It generated the GIF below, as well as the following code:
    <code>
    <IMG src="/GIF_TEXT?text=john.gray@pedants.anonymous.com+&sty le=&FONT=Enviro&TTF_FONT=Arial&
    TTF_FONT_SIZE=12&back=&slide=&Width=0&height=0&sub mitmid=Generate+the+.GIF&saveit=1&
    font2=&slide2=&back2=&v_align=T&line_j=C&x_scale=& y_scale=&X_OF=0&X_FR=1&Y_OF=0&Y_FR=1&
    slide_h=F&slide_v=N&SLIDE_C=&figdist_t=3&slide_t=P 1&slide_p=1&SLIDE_S=0&SLIDE_R=&SLIDE_G=&
    SLIDE_B=&maskin=&MASK_T=0&backc=&textc=&trans=&tim e_fmt=N&date_fmt=N&CACHE2=GTMP097.GIF&
    MESSAGE.GIF">
    </code>
    How's this look?

    Alan
    Attached Images Attached Images

  5. #5
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Email address -> transparent GIF

    Alan

    Thanks - that looks quite promising -- once I've worked out what all the parameters are for...!

    I don't like the look of my "email address" in clear text in the <IMG> code, though - this might defeat the whole purpose of it...

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  6. #6
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Email address -> transparent GIF

    Waggers

    Thanks, but our website is entirely free of PHP, and I am entirely ignorant of it, too...

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  7. #7
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Email address -> transparent GIF

    Yes, I was rather confused myself by all that arcane code. I'll dig around and see if I can sniff out something better/ simpler.

    [Later]... Free Software --- Text2GIF: Turn a text line into a GIF image - small, simple and <img src=/S/free.gif border=0 alt=free width=30 height=15>. It does the the picture, but not the HTML or the directory insertion... might be a job for an AutoIt wrapper.

    Alan

  8. #8
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Email address -> transparent GIF

    Hi John

    I am going to absolutely shot down in flames I know but I just want to put mt caveat in here for accessibility to a web page. People with visual impairment do not like graphics, even if they mimic type as in this case. If you are to do this you will require alt/title tags and I know that your site mentions Accessibility and mandates.....sorry HTML pedant signing off <img src=/S/grin.gif border=0 alt=grin width=15 height=15>
    Jerry

  9. #9
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Email address -> transparent GIF

    There seems to be a major conflict here - accessibility vs. spam. Hmmmm.

    John
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  10. #10
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Email address -> transparent GIF

    Sorry <img src=/S/evilgrin.gif border=0 alt=evilgrin width=15 height=15>

    I thought it would be important to bring this in as you/we have to always weigh up the cost/benefit and general user enjoyment from our sites. I think you have to look at this predicament and

    1) What is your audience?
    2) Who are they?
    3) Will I have a number of visual impaired people to my site

    I would move away from this and use the javascript options that have been talked about recently, at least you can adjust the sizing...just food for thought, I don't have the anser just the argument <img src=/S/grin.gif border=0 alt=grin width=15 height=15>
    Jerry

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •