{"action":"created","issue":{"url":"https://api.github.com/repos/almende/vis/issues/936","labels_url":"https://api.github.com/repos/almende/vis/issues/936/labels{/name}","comments_url":"https://api.github.com/repos/almende/vis/issues/936/comments","events_url":"https://api.github.com/repos/almende/vis/issues/936/events","html_url":"https://github.com/almende/vis/issues/936","id":85635154,"number":936,"title":"Network svg image don't respect original image size / v4","user":{"login":"nathalizator","id":12382753,"avatar_url":"https://avatars.githubusercontent.com/u/12382753?v=3","gravatar_id":"","url":"https://api.github.com/users/nathalizator","html_url":"https://github.com/nathalizator","followers_url":"https://api.github.com/users/nathalizator/followers","following_url":"https://api.github.com/users/nathalizator/following{/other_user}","gists_url":"https://api.github.com/users/nathalizator/gists{/gist_id}","starred_url":"https://api.github.com/users/nathalizator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathalizator/subscriptions","organizations_url":"https://api.github.com/users/nathalizator/orgs","repos_url":"https://api.github.com/users/nathalizator/repos","events_url":"https://api.github.com/users/nathalizator/events{/privacy}","received_events_url":"https://api.github.com/users/nathalizator/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-05T21:18:38Z","updated_at":"2015-06-06T11:17:23Z","closed_at":null,"body":"Hi ,\r\nI upgrade to the new v4 network, sadly it seems that the size on my svg image are not similar to their original size.   Some of my icons have the right size and others see their  size enlarged ( not distorted as in the old v4). Here is an example . The black background node on the left should have the good size ( like on the right side which is old version of vis.js ) \r\n"},"comment":{"url":"https://api.github.com/repos/almende/vis/issues/comments/109566063","html_url":"https://github.com/almende/vis/issues/936#issuecomment-109566063","issue_url":"https://api.github.com/repos/almende/vis/issues/936","id":109566063,"user":{"login":"AlexDM0","id":5363277,"avatar_url":"https://avatars.githubusercontent.com/u/5363277?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexDM0","html_url":"https://github.com/AlexDM0","followers_url":"https://api.github.com/users/AlexDM0/followers","following_url":"https://api.github.com/users/AlexDM0/following{/other_user}","gists_url":"https://api.github.com/users/AlexDM0/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexDM0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexDM0/subscriptions","organizations_url":"https://api.github.com/users/AlexDM0/orgs","repos_url":"https://api.github.com/users/AlexDM0/repos","events_url":"https://api.github.com/users/AlexDM0/events{/privacy}","received_events_url":"https://api.github.com/users/AlexDM0/received_events","type":"User","site_admin":false},"created_at":"2015-06-06T11:17:23Z","updated_at":"2015-06-06T11:17:23Z","body":"Hi,\n\nI see, images indeed are scaled to the size option. This is not a big but intended. This is because the only way to use SVG icons as well as images at a certain size was to resize each and every one of them. To fix this the size parameter works on nearly all nodes except the ones getting size from the label. \n\nThere was another issue that raises the question to set options of node type specific properties and we'll think about a clean solution for this. If we have a nice way to provide options for the node shape specific parameters, a scaleToSize could be added for the images types?\n\nRegards,\n\nAlex \n\n> On 6 jun. 2015, at 10:37, nathalizator <notifications@github.com> wrote:\n> \n> I think it's a bug because the svg image used to keep the original size of the image with the old version. It is annoying when you have different size of svg image.\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}