{"action":"created","issue":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-diagram/issues/198","repository_url":"https://api.github.com/repos/asciidoctor/asciidoctor-diagram","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor-diagram/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/asciidoctor-diagram/issues/198/comments","events_url":"https://api.github.com/repos/asciidoctor/asciidoctor-diagram/issues/198/events","html_url":"https://github.com/asciidoctor/asciidoctor-diagram/issues/198","id":375916449,"node_id":"MDU6SXNzdWUzNzU5MTY0NDk=","number":198,"title":"Can't use asciidoctor -o option in nonlocal directory with ditaa diagram and :data-uri:","user":{"login":"oddhack","id":4693344,"node_id":"MDQ6VXNlcjQ2OTMzNDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/4693344?v=4","gravatar_id":"","url":"https://api.github.com/users/oddhack","html_url":"https://github.com/oddhack","followers_url":"https://api.github.com/users/oddhack/followers","following_url":"https://api.github.com/users/oddhack/following{/other_user}","gists_url":"https://api.github.com/users/oddhack/gists{/gist_id}","starred_url":"https://api.github.com/users/oddhack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oddhack/subscriptions","organizations_url":"https://api.github.com/users/oddhack/orgs","repos_url":"https://api.github.com/users/oddhack/repos","events_url":"https://api.github.com/users/oddhack/events{/privacy}","received_events_url":"https://api.github.com/users/oddhack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-10-31T11:26:38Z","updated_at":"2018-11-02T10:21:02Z","closed_at":null,"author_association":"NONE","body":"(This may be related to #110)\r\n\r\nAsciidoctor 1.5.8, asciidoctor-diagram 1.5.10\r\n\r\nIf the :data-uri: attribute is set, a ditaa diagram is included (see attachment), and the asciidoctor invocation includes -o someotherpath/file.html, I see the following error:\r\n\r\n> asciidoctor -b html5 -r asciidoctor-diagram -o out/index.html test.adoc \r\n> asciidoctor: WARNING: image to embed not found or not readable: \\<current directory>/diagram.png\r\n\r\nand indeed, there is no 'diagram.png' in the invocation directory. There is one in the 'out/' directory left over after execution, but it's not imbedded in the generated HTML in out/index.html, which contains just\r\n\r\n> \\<img src=\"data:image/png;base64,\" alt=\"diagram\" width=\"130\" height=\"98\">\r\n\r\nRemove the :data-uri: attribute and the warning goes away - but then it's not a single-file HTML document as desired.\r\n\r\nDon't use the -o option, or use a -o option without an output directory, and the warning goes away, and the HTML contains the imbedded image. But then I can't put my output where I want to (without additional commands following asciidoctor):\r\n\r\n> asciidoctor -b html5 -r asciidoctor-diagram -o index.html test.adoc\r\n\r\nHow can I target asciidoctor output to a different directory, and still have my ditaa diagram inlined in the generated document? I've tried setting the outdir/imagesdir options in various combinations but without success.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-diagram/issues/comments/435334048","html_url":"https://github.com/asciidoctor/asciidoctor-diagram/issues/198#issuecomment-435334048","issue_url":"https://api.github.com/repos/asciidoctor/asciidoctor-diagram/issues/198","id":435334048,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTMzNDA0OA==","user":{"login":"mojavelinux","id":79351,"node_id":"MDQ6VXNlcjc5MzUx","avatar_url":"https://avatars2.githubusercontent.com/u/79351?v=4","gravatar_id":"","url":"https://api.github.com/users/mojavelinux","html_url":"https://github.com/mojavelinux","followers_url":"https://api.github.com/users/mojavelinux/followers","following_url":"https://api.github.com/users/mojavelinux/following{/other_user}","gists_url":"https://api.github.com/users/mojavelinux/gists{/gist_id}","starred_url":"https://api.github.com/users/mojavelinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojavelinux/subscriptions","organizations_url":"https://api.github.com/users/mojavelinux/orgs","repos_url":"https://api.github.com/users/mojavelinux/repos","events_url":"https://api.github.com/users/mojavelinux/events{/privacy}","received_events_url":"https://api.github.com/users/mojavelinux/received_events","type":"User","site_admin":false},"created_at":"2018-11-02T10:21:02Z","updated_at":"2018-11-02T10:21:02Z","author_association":"MEMBER","body":"Thanks @pepijnve!!"}}
{"actor":{"display_login":"mojavelinux"}}