{"action":"created","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1748","repository_url":"https://api.github.com/repos/danialfarid/ng-file-upload","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1748/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1748/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1748/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1748","id":183408148,"number":1748,"title":"Wrong default Calculation of Thumbnail Boundaries","user":{"login":"saltwalwei","id":20838035,"avatar_url":"https://avatars.githubusercontent.com/u/20838035?v=3","gravatar_id":"","url":"https://api.github.com/users/saltwalwei","html_url":"https://github.com/saltwalwei","followers_url":"https://api.github.com/users/saltwalwei/followers","following_url":"https://api.github.com/users/saltwalwei/following{/other_user}","gists_url":"https://api.github.com/users/saltwalwei/gists{/gist_id}","starred_url":"https://api.github.com/users/saltwalwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saltwalwei/subscriptions","organizations_url":"https://api.github.com/users/saltwalwei/orgs","repos_url":"https://api.github.com/users/saltwalwei/repos","events_url":"https://api.github.com/users/saltwalwei/events{/privacy}","received_events_url":"https://api.github.com/users/saltwalwei/received_events","type":"User","site_admin":false},"labels":[{"id":49094255,"url":"https://api.github.com/repos/danialfarid/ng-file-upload/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-17T12:54:06Z","updated_at":"2016-11-05T04:31:27Z","closed_at":"2016-11-05T04:30:53Z","body":"From the example:\n\n> <div|span|...\n>  *ngf-thumbnail=\"file\" //Generates a thumbnail version of the image file\n>  ngf-size=\"{width: 20, height: 20, quality: 0.9}\" the image will be resized to this size\n>         // if not specified will be resized to this element`s client width and height.\n>  ngf-as-background=\"boolean\" //if true it will set the background image style instead of src attribute.\n\nIf the ngf-size attribute is not set, the height and width for the thumbnail will be calculated. Problems occur if the computed css value, which the calculation defaults to, is a percentage value. Then the last two characters get spliced and i.e. height/width: 100% gives an element height/width of 10 resulting in a drastically downscaled thumbnail.\n"},"comment":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/comments/258590266","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1748#issuecomment-258590266","issue_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1748","id":258590266,"user":{"login":"danialfarid","id":1676054,"avatar_url":"https://avatars.githubusercontent.com/u/1676054?v=3","gravatar_id":"","url":"https://api.github.com/users/danialfarid","html_url":"https://github.com/danialfarid","followers_url":"https://api.github.com/users/danialfarid/followers","following_url":"https://api.github.com/users/danialfarid/following{/other_user}","gists_url":"https://api.github.com/users/danialfarid/gists{/gist_id}","starred_url":"https://api.github.com/users/danialfarid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danialfarid/subscriptions","organizations_url":"https://api.github.com/users/danialfarid/orgs","repos_url":"https://api.github.com/users/danialfarid/repos","events_url":"https://api.github.com/users/danialfarid/events{/privacy}","received_events_url":"https://api.github.com/users/danialfarid/received_events","type":"User","site_admin":false},"created_at":"2016-11-05T04:31:26Z","updated_at":"2016-11-05T04:31:26Z","body":"Fixed at 12.2.13"}}
{"actor":{"display_login":"danialfarid"}}