Does Google index images in SVG (inline) or Base64?

Asked

Viewed 295 times

11

I was thinking of turning the logo of a site to SVG, but I was thinking of using it in a way inline as code within tags <svg>. To be inline, I can interact as the SVG directly through the CSS, with the imagem.svg I can’t do what I want.

There remained the doubt. Being the image an SVG inline, right in the body of the document, would it be indexed by Google? I know that Base64 images are not in cache, but are these codes considered by search engines as an image? What about SEO and the alt text in that situation?

When you Google "Company X Logo", if that logo is an SVG inline Google will not return anything?

Ex. of a page with the logo in SVG inline:
(I left some comments in the code)

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    #logo {
        width: 100px;
        height: auto;
    }
    </style>
</head>
<body>
    

    <div id="logo">

        <!-- O Google vai indexar essa tag SVG abaixo como uma imagem nos resultados de busca?? -->
        
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
            <path d="M30,1h40l29,29v40l-29,29h-40l-29-29v-40z" stroke="#000" fill="none"/> 
            <path d="M31,3h38l28,28v38l-28,28h-38l-28-28v-38z" fill="#a23"/> 
            <text x="50" y="68" font-size="48" fill="#FFF" text-anchor="middle"><![CDATA[410]]></text>
        </svg>
    </div>

<!-- Imagens com extencao .svg eu sei que o Google indexa, mas e no caso acima como fica? O Google renderia a tag <svg> e entrega uma imagem no resultado de busca? -->

<img src="imagem.svg">


</body>
</html>

According to this link it seems that Google indexes imagens.svg, but about images built within tags <svg></svg> they don’t say anything... https://webmasters.googleblog.com/2010/08/google-now-indexes-svg.html

OBS: If possible I would like an answer with sources, or with any test indexing done on Google, or even with some case study... But responses based on "achism" have no interest.

  • I don’t think google will index a Base64 urlencoded file, because it uses your image url as the basis to index your search system.

  • 3

    https://webmasters.stackexchange.com/questions/56701/image-data-uri-and-seo see this link

  • in it says that google will not index data-URI

  • 1

    https://www.quora.com/Are-SVG-images-good-for-SEO

  • 1

    This reference indicates that you use <title> and <desc> within the <svg> tag for homonymous operation. https://www.sitepoint.com/tips-accessible-svg/

  • 1

    @Andremesquita thanks for the link

  • 1

    @Marcosbrinner got the tip!

  • 1

    In fact Google indexes the <text> SVG, inline or not. But what you can try is to use schema.org for logos. So you can index, Google will understand how a logo and will still use for semantic SEO. https://webmasters.googleblog.com/2013/05/using-schemaorg-markup-for-organization.html

Show 3 more comments

2 answers

2


"We index the SVG content regardless of whether it is in a separate file or embedded directly in HTML. The web is great, so it may take some time to track and index most SVG files, but from today you can start seeing them in your search if you really need to try searching for [sitemap site: fastsvg.com] or [site Hideshow: svg-Whiz.com]"

https://webmasters.googleblog.com/2010/08/google-now-indexes-svg.html - Against Google there are no arguments.

  • It’s not a.svg image that I doubt, that I know it indexes. I want to know is if I put the SVG code right into the HTML with the tag <svg> whether or not this code is indexed by Google in image form.

  • Well when doing a search in Google images using the filetype:SVG it returns images and while visiting the page you can see that the images are in code

  • Young here you don’t understand... Just searching for "filetype:svg" you’re already saying you’re looking for a file type of has the extension .svg that’s not my question. I know it indexes image .svg i wonder if it "turns" a tag <svg> that is in the document in a.svg image and shows in the search result.... because as far as I have seen I do not know if it does this "conversion" <svg viewBox="0 0 100 100">&#xA; <path d="M31,3h38l28,28v38l-28,28h-38l-28-28v-38z" fill="#a23"/> &#xA;&#xA;</svg> directly in HTML, how does it return this in the search? Or does not return anything?

  • Dude I’m not sure what question you asked, but I hope this link can help you http://graph.fedwiki.org/view/graph-plugin

  • I edited the question and put an example to make it easier to visualize my question.

  • "We index SVG content whether it is in a standalone file or Embedded directly in HTML. The web is big, so it may take some time before we Crawl and index Most SVG files, but as of Today you may start Seeing them in your search Results. If you want to see it yourself, Try Searching for [sitemap site:fastsvg.com] or [Hideshow site:svg-Whiz.com]" https://webmasters.googleblog.com/2010/08/google-now-indexes-svg.html Against google there are no arguments

  • Do a translation of this and put in the edit of your answer, it will get better

  • Consider it done

Show 3 more comments

0

The most indexed part that Google recognizes in its "routine" searches is in Base64.

You can test by researching:

monte libano tab-educativos.svg

Then click on the link below the suggestion that will be generated:

Something like => "Images from mount tab-educational.svg Ibano"

https://www.google.com/search?q=monte+libano+tab-educativos.svg&rlz=1C1JZAP_pt-BRBR814BR814&tbm=isch&tbo=u&source=univ&sa=X&ved=2ahUKEwiizeS42OrdAhUJPJAKHS_FA9IQsAR6BAgGEAE&biw=1920&bih=969

Click on the example image ("Port All"):

Base64 Indexed Image Link below:

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAYUAAACBCAMAAAAYG1bYAAAAyVBMVEX///8NP28af94AMWcAOmwAM2gAN2oMPGoANWkageIAL2YNPm0ANGkMO2gAO2wALWUAKWMYds4AJmIOQ3b2+PoZe9cSWp7w8/bp7fERU5IYd9AVZ7UAJGEPSoIXcsgNQnS1wc8QTIYWa7zT2uIUYqyXp7rh6O69ydU0XISKnLJlfpsRV5l8kqutuslCYIVGaI11iaIbSnjM1uCSo7deeJdthaGjssMkTnpVbY4AGFs7XIIAW6wwVH4oWI1DaJE4YI4AEFkAUp0AQHuM8DGiAAAVNElEQVR4nO1d6WKiyrYWQUBQMEoiZnKeEo1jTDrHfe/Z+/0f6ta0VhVQ6ZAebp8+Xd+vKFAU9a15FaZSMTAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMPjDkc66v3oKfzhmp+POcqyXh/XsV0/lT8VsuqjZTmRZVuTajd12kP7qGf1xGB92cc2xJEI3iF+W+189rz8I+2W/1YisAiI/br2ejHH6+Ujm237L11Ag4Njt/nZgHPZPRHo6BvFXKACVCFqL5Tz51bP9b0QyPmxi2/2AAcU4+a/TsWHiRyIdbF+y3rgEnFpr93xKDRM/AkQJXt3A/cgO6VXCtYOn1dzEsN+JZHX+tBLkmPDj/tEYp+/CtP1NSpAjwqnZ5+fxr36W3xfLxveTwJmovf3qZ/l9Ma39IBas6MVkEd8Kw8J/AjgLXtMLv4sCr9m5O//IeSX7wfQ0/01dTTpfT9fzT5R6TjZdw6vrybDZ/FYiwmbz8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NgbTj4SeiuX2P5r0j4ZmHrIsMBfReR2CLDwU/FbLmL1WKuwgLtPdx5oRO/DQwHPxvEVQe2U2ChXr9/tJqh29p8upFh8E3onhYtH1moi5a/51l+++E3/dHf3xPjZUO46hF7tYeoQWS3lt/QxjD4LsxfWzSrboYW/eVhJ9iVfF/O4MeiO93ZbhSGUeTbxh38Qswfdpa1WxzMf8z7xeia/65gYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYGBgYJDH/wHPquloFgtFfwAAAABJRU5ErkJggg==   

Image Link on the Website:

http://www.montelibano.com.br/assets/Imagens/icones/navegacao/tab-porta-tudo.svg

Browser other questions tagged

You are not signed in. Login or sign up in order to post.