Image path and includes are tricky.
You can find threads I have started on similar topics:
*
asciidoctor-maven-plugin and images*
Understanding include directive and file pathNow my problem are solved, I you are interested it is in a public repo. But I am using Maven and Asciidoctorj, so your use case might be different. At the end my solution was not to use imagesdir at all (set to emtpy value) and I am using my own variable "imgsdir", set to an absolute path using maven.
Have you the latest version of asciidoctor?
I think the image path is computed depending if you have specified an absolute or a relative path.
The {imagedir} also plays a role. There are a lot of inputs in the
user manual (search for imagesdir).
"C:/myproject" is where you run the command?
It looks like that the imagesdir value is not considered at all... The default "./images" is used.
Can you print the "imagesdir" value in your text?
Just do: My image dir path is {imagesdir}
I guess you do not have a problem if your structure is flat (mydoc.adoc and chap1.adoc and section1.adoc in the same folder).
There was a bug with path starting with "../" (this was for links, but who knows). Maybe you can try "fake/../../../img" with an empty imagesdir value.
An other test you can do is to try an absolute path. According to the doc, in that case the imagesdir value should be ignored.