{"action":"created","issue":{"url":"https://api.github.com/repos/impresspages/ImpressPages/issues/708","labels_url":"https://api.github.com/repos/impresspages/ImpressPages/issues/708/labels{/name}","comments_url":"https://api.github.com/repos/impresspages/ImpressPages/issues/708/comments","events_url":"https://api.github.com/repos/impresspages/ImpressPages/issues/708/events","html_url":"https://github.com/impresspages/ImpressPages/issues/708","id":60635134,"number":708,"title":"Less Compiler: Builtin data-uri() method doesn't work correctly","user":{"login":"arm1n","id":2787041,"avatar_url":"https://avatars.githubusercontent.com/u/2787041?v=3","gravatar_id":"","url":"https://api.github.com/users/arm1n","html_url":"https://github.com/arm1n","followers_url":"https://api.github.com/users/arm1n/followers","following_url":"https://api.github.com/users/arm1n/following{/other_user}","gists_url":"https://api.github.com/users/arm1n/gists{/gist_id}","starred_url":"https://api.github.com/users/arm1n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arm1n/subscriptions","organizations_url":"https://api.github.com/users/arm1n/orgs","repos_url":"https://api.github.com/users/arm1n/repos","events_url":"https://api.github.com/users/arm1n/events{/privacy}","received_events_url":"https://api.github.com/users/arm1n/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-11T10:05:50Z","updated_at":"2015-03-11T13:59:14Z","closed_at":null,"body":"Hi there!\r\n\r\nJust wanted to use Less' builtin `data-uri()` method for background images, but could not get it to work unless I took a look at IP's [LessCompiler](https://github.com/impresspages/ImpressPages/blob/a5b736000e9a00d6114e567669927970eaf91069/Ip/Internal/Design/LessCompiler.php#L57). By changing `relativeUrls` option to `true`, Less parser correctly transforms the image into a data uri. In my opinion it shouldn't matter if `relativeUrls` are set to `false` or `true`, but after debugging [Less.php's](https://github.com/impresspages/ImpressPages/blob/6b97b9d9dcc8dac9be26e1545b066b85089c9214/Ip/Lib/less.php/Less.php#L3610) `datauri()` method itself I experienced that `$this->currentFileInfo['entryPath']` contains an empty string, so this could probably be a bug within Less Parser. Do you have any ideas how to resolve this issue without changing `relativeUrls` option, as I think this would affect too many existing sites?"},"comment":{"url":"https://api.github.com/repos/impresspages/ImpressPages/issues/comments/78267491","html_url":"https://github.com/impresspages/ImpressPages/issues/708#issuecomment-78267491","issue_url":"https://api.github.com/repos/impresspages/ImpressPages/issues/708","id":78267491,"user":{"login":"arm1n","id":2787041,"avatar_url":"https://avatars.githubusercontent.com/u/2787041?v=3","gravatar_id":"","url":"https://api.github.com/users/arm1n","html_url":"https://github.com/arm1n","followers_url":"https://api.github.com/users/arm1n/followers","following_url":"https://api.github.com/users/arm1n/following{/other_user}","gists_url":"https://api.github.com/users/arm1n/gists{/gist_id}","starred_url":"https://api.github.com/users/arm1n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arm1n/subscriptions","organizations_url":"https://api.github.com/users/arm1n/orgs","repos_url":"https://api.github.com/users/arm1n/repos","events_url":"https://api.github.com/users/arm1n/events{/privacy}","received_events_url":"https://api.github.com/users/arm1n/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T13:59:14Z","updated_at":"2015-03-11T13:59:14Z","body":"I've replaced less.php in my current project with [latest version](https://github.com/oyejorge/less.php/releases/tag/v1.7.0.3), but unfortunately that doesn't make any difference leaving LessCompiler.php untouched."}}