Dec. 20th, 2005 23:35 by sdeluca — Permalink | TrackBack: http://deluca.biz/trackback/306 | Del.icio.us — exists for 2 years & 9 months ago — Rate:
— — Sorry, this content is not available in english.
Je me demandais comment google et les autres moteurs de recherche indexaient les photos ou images.
Si j'avais à écrire un tel logiciel, j'utiliserais pour les balises IMG plusieurs sources possibles d'indexation :
* Le texte environnant la photo elle–même,
* L'attribut SRC : Où l'on indique le nom du fichier ( l'URL en fait ),
* L'attribut ALT : Le texte alternatif utilisé par les browsers ne sachant pas rendre des images, ou par les autres pendant la phase de téléchargement,
* L'attribut TITLE : Le titre de l'image, qui s'affiche lorsque l'on passe la souris au dessus de l'image.
Pour en avoir le cœur net, j'ai fait quelques tests; En voici les résultats.
Notez que le processus de test en lui–même est assez long car il faut attendre que Google Bot réindexe le site.
J'ai donc intégré quelques images de test en appât sur mon site, en utilisant indépendament la description de l'image dans chacun des attributs mentionnés plus haut, puis j'ai attendu quelques jours leur indexation par Google bot.
En relevant mes filets, je puis vous dire que la pêche fût bonne.
Lorsque je vais sur Google image et tape "Stéphane de Luca", j'obtiens seulement l'image qui contient le nom dans l'attribut "title". Google ne tiens pas compte ni du nom de l'image, ni du nom alternatif.
Vous voilà averti ! En conclusion, il va falloir que je modifie toutes mes balises IMG afin d'intégrer leur description dans le titre.
Dec. 20th, 2005 23:35 by — Permalink | TrackBack: http://deluca.biz/trackback/307 | Del.icio.us — exists for 2 years & 9 months ago — Rate:
I was wondering how Google and others search engines were indexing photographs and images.
If I was writing a software for indexing IMG tags, I would take several sources of informations as follows:
* The text surrounding the IMG tag,
* The SRC attribute: Where you tell what file to link (the URL actually),
* The ALT attribute: The alternate text used by non graphic browsers, or as a place holder during the download of the image,
* The TITLE attribute: The title displayed when the mouse hovers the image.
I wanted to know for Google so I ran some tests. Here are the results.
Note that the process itself is rather time consuming due to the fact that you have to wait for Google Bot to reindex your site.
I put some photographs on my site, each one using a different way to describe the image, and wait for Google Bot to come.
Once done, I got to Google image looking for "Stéphane de Luca"; the only image I was showed was the one that used the title attribute of the IMG tag.
Here we go! Knowing that, I now have to update every single IMG tag in my site to take advantage of this.