{"action":"created","issue":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/271","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/271/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/271/comments","events_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/271/events","html_url":"https://github.com/asciidoctor/asciidoctor-pdf/issues/271","id":95210103,"number":271,"title":"Generated images not found when srcdir != destdir","user":{"login":"mbodmer","id":853879,"avatar_url":"https://avatars.githubusercontent.com/u/853879?v=3","gravatar_id":"","url":"https://api.github.com/users/mbodmer","html_url":"https://github.com/mbodmer","followers_url":"https://api.github.com/users/mbodmer/followers","following_url":"https://api.github.com/users/mbodmer/following{/other_user}","gists_url":"https://api.github.com/users/mbodmer/gists{/gist_id}","starred_url":"https://api.github.com/users/mbodmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbodmer/subscriptions","organizations_url":"https://api.github.com/users/mbodmer/orgs","repos_url":"https://api.github.com/users/mbodmer/repos","events_url":"https://api.github.com/users/mbodmer/events{/privacy}","received_events_url":"https://api.github.com/users/mbodmer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"mojavelinux","id":79351,"avatar_url":"https://avatars.githubusercontent.com/u/79351?v=3","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},"milestone":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/milestones/2","html_url":"https://github.com/asciidoctor/asciidoctor-pdf/milestones/v1.5.0","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/milestones/2/labels","id":756849,"number":2,"title":"v1.5.0","description":"The first stable release of the converter, aligns with Asciidoctor 1.5.0. ","creator":{"login":"mojavelinux","id":79351,"avatar_url":"https://avatars.githubusercontent.com/u/79351?v=3","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},"open_issues":42,"closed_issues":91,"state":"open","created_at":"2014-08-18T05:02:11Z","updated_at":"2015-07-17T08:11:45Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-07-15T14:30:18Z","updated_at":"2015-07-17T13:23:06Z","closed_at":null,"body":"I have defined ```:imagesdir: assets``` inside the document and have embedded some png graphics in my ```$(SRCDIR)/assets``` and also some asciidoctor-diagram generated graphics.\r\n\r\nOn the commandline i give the parameters: ```-B $(SRCDIR) -D $(OUTDIR)```\r\n\r\nThe generated graphics can be found as expected in ```$(OUTDIR)/assets.```\r\n\r\nMy problem now is asciidoctor-pdf does not find these generated graphics anymore since i have updated to the newest version (1.5.0.alpha.8). Before (version unknown) this was working, however.\r\n\r\nThe error message is as follows (real path exchanged with variables):\r\n```asciidoctor: WARNING: image to embed not found or not readable: $(SRCDIR)/assets/generated_graphics.png```\r\n\r\nI have also tried to generate html with embedded generated graphics in ```asciidoctor```, this worked as expected. With these settings. I had to copy the static resources from ```$(SRCDIR)/assets``` to ```$(OUTDIR)/assets```, however.\r\n\r\nIs this a bug in asciidoctor-pdf, or do I have to do this differently?\r\nI would like different src/dest directories.\r\n"},"comment":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/comments/122273790","html_url":"https://github.com/asciidoctor/asciidoctor-pdf/issues/271#issuecomment-122273790","issue_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/271","id":122273790,"user":{"login":"MaWiMa","id":4765542,"avatar_url":"https://avatars.githubusercontent.com/u/4765542?v=3","gravatar_id":"","url":"https://api.github.com/users/MaWiMa","html_url":"https://github.com/MaWiMa","followers_url":"https://api.github.com/users/MaWiMa/followers","following_url":"https://api.github.com/users/MaWiMa/following{/other_user}","gists_url":"https://api.github.com/users/MaWiMa/gists{/gist_id}","starred_url":"https://api.github.com/users/MaWiMa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaWiMa/subscriptions","organizations_url":"https://api.github.com/users/MaWiMa/orgs","repos_url":"https://api.github.com/users/MaWiMa/repos","events_url":"https://api.github.com/users/MaWiMa/events{/privacy}","received_events_url":"https://api.github.com/users/MaWiMa/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T13:23:06Z","updated_at":"2015-07-17T13:23:06Z","body":"this works for me on command line (apha8 and before):\r\nasciidoctor-pdf  -a pdf-style=CCS -a pdf-stylesdir=CCS  -a imagesdir=../CCS/images somefile.txt\r\nor in script\r\n#!/usr/bin/ruby\r\nrequire 'asciidoctor'\r\nrequire 'asciidoctor-pdf'\r\n...\r\nsome code\r\n...\r\nAsciidoctor.render_file f,\r\n:base_dir => '.',\r\n:to_dir => 'CCS/inclusion',\r\n:backend => 'pdf',\r\n:attributes => 'pdf-pages pdf-style=CCS pdf-stylesdir=CCS imagesdir=CCS/images includedir=included',\r\n#:attributes => 'pdf-pages  imagesdir=CCS/images includedir=included',\r\n:safe => 'safe'\r\n...\r\n\r\n(full script look at https://github.com/MaWiMa/CCS/blob/master/makePages.rb)"}}