title: How to get image file from local directory by gatsby-transformer-asciidoc?
body: <p>I use <a href="https://www.gatsbyjs.org/packages/gatsby-transformer-asciidoc/" rel="nofollow noreferrer">gatsby-transformer-asciidoc</a> and write <code>image::&lt;some-name&gt;[]</code> in <code>.adoc</code>. But I haven't could get images.</p>
  
  <p><strong>Dirctory structure</strong></p>
  
  <pre><code>---images
   |  |-cheetah.png
   |-posts
   |  |-test.adoc
   |-src
   |-gatsby-config.js
   |-gatsby-node.js
   :
  </code></pre>
  
  <p><strong>gatsby-config.js plugin</strong></p>
  
  <pre><code>plugins: [
    {
      resolve: `gatsby-transformer-asciidoc`,
      options: {
        attributes: {
          imagesdir: `/images`,
        },
      },
    },
  ]
  </code></pre>
  
  <p><strong>test.adoc</strong></p>
  
  <pre><code> :
  image::cheetah.png[]
   :
  </code></pre>
  
  <p>But I haven't get the image.</p>
  
  <p>And I test an another plugin strucure.</p>
  
  <p><strong>gatsby-config.js</strong></p>
  
  <pre><code>plugins: [
    {
      resolve: `gatsby-transformer-asciidoc`,
      options: {
        attributes: {
          imagesdir: `${__dirname}/images`,
        },
      },
    },
  ]
  </code></pre>
  
  <p>But I could not.</p>
  
  <p><strong>Please save me!</strong></p>