PDA

View Full Version : Making Text Graphics Available As Text For SEO Purposes



Chris
06-21-2004, 05:14 PM
Note: Chris here with an article that may make image use and SEO consideration an easier subject to tackle. Enjoy.

With the exception of alt tags and file names, optimizing images for search engine purposes has always been a difficult task. This task may have become easier thanks to dynamic text replacement technique developed, in part, by Stewart Rosenberger.

By creating text images on the fly, they can replace text that is being used for headers or other purposes. Stewart’s technique appeared on A List Apart, and the process “automatically swaps XHTML text with an image of that text, consistently displayed in any font you own.”

A quick primer in how Rosenberger’s technique works: Once the HTML is finished loading, the JavaScript reads the tag of whatever text you want to be replaced, then “informs” the server-side program, in this case PHP, to create the image that will be used in the replacement process.

The server-side program, by using the selected font which is stored on the server itself, creates the image as a .png file. It then replaces the desired text, on screen, while keeping the HTML with the keyword-text intact.

To read a more technical how to that includes script downloads, please read Stewart’s article (http://www.alistapart.com/articles/dynatext/).

Stewart’s method is a good way to combat plain text appearing differently in browsers. By controlling the appearance of headings with text images, developers don’t have to worry about a visitor receiving a different looking page than was intended.

Other SEO-related benefits of this quasi-applet are that it allows you to use images for your website’s presentation, while keeping the original “text placeholder” that can be spidered for keyword density and relevance. Craig B, a poster at HighRankings.com (http://www.highrankings.com/forum/index.php?showtopic=7199), a forum associated with search engine optimization, says about Rosenberger’s technique:

“Not only does Rosenberg’s method save countless hours preparing and cutting images in Photoshop… From an SEO perspective, images are useless to optimization efforts because search engine spiders cannot read and index images. In fact, image headings take up valuable space where keyword-rich text could be placed as HTML headings.”

“If we use Rosenberger’s method, a spider only sees the HTML and indexes the site as such. H1, H2 and H3 tags are replaced behind-the-scenes with designer-friendly images!”

Alan Perkins, an administrator at HighRankings.com, agrees with Craig, but issues a couple of cautions. Alan believes that this technique can place a higher level of stress on the a server, “as each word is rendered as a separate image.” Perkins believes that this method also contains the potential for spamming.

Besides the spam warning, reaction to this technique has been positive. Because of the difficulty in optimizing images for search purposes, having a program that replaces on-screen text with a duplicate image, while allowing the text to remain crawlable by search engines, is positive for web developers with SEO demands.

The key to this approach is that the text remains within the HTML, and therefore, still viewable by search engine spiders. This will allow developers to maintain any keyword benefits they receive from the text, while giving them more control over the appearance of the website.

The following link is a demonstration of Rosenberger’s technique in action: View demo (http://www.stewartspeak.com/dtr/demo/).

Be sure and view the source code and you will see that no image tags are being used, only text and text headings that the script will recognize and replace with “on the fly” images.

Thanks to SearchEngineRoundTable (http://www.seroundtable.com/archives/000564.html) for the heads up.

jdcdesigns
06-22-2004, 02:14 PM
Make sure that in your scripts your run a check on string length, other wise it could be conceivable for someone to slow down or even crash your server. For example, in Stewarts Demo:
http://www.stewartspeak.com/dtr/demo/
You call the image as:
http://www.stewartspeak.com/dtr/demo/h1.php?text=Text%20&selector=h1

It would be easy for someone to put a string that is lets say 5 million characters in length and repeat this over and over and over.....


for ($c=0;$c<5000000;$c++){
for ($i=1;$i<5000000;$i++)
$string .= rand(1000,9000);

http://www.stewartspeak.com/dtr/demo/h1.php?text=$sttring&selector=h1
}

So make sure you create a function that truncates any string to X number characters or if it is greater than X number of characters it it simply does not run the script to create the image or something of that nature

sarahk
06-22-2004, 08:11 PM
Consider, also, your audience. Normal people are ok but geeks are prone to turn off javascript.

Curious George
06-23-2004, 08:01 AM
We used text images on our site - http://i-artz.com. They can be viewed in the header - home page, calendar, about the gallery etc.

It seems to work well with SEO. The site launched in February and currently enjoys a PR5.

Curious George

hawkwind dave
07-02-2004, 12:39 PM
I notice in the code of the demo, http://www.stewartspeak.com/dtr/demo/ , that the H2 tag has been used 3 times. Is this legal?

I always understood that we only had one shot at each of the 6 heading tags, although I'd like to be wrong, I often am! ;-D

Dave Hawley
07-04-2004, 12:33 AM
I don't get it? Why not just use normal text over a image of text to start with?

I know many sites use the Text image to stop auto<whatever> and spammers, but these are just meaningless letters and would serve no SEO purpose anyway.