{"action":"created","issue":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1583","repository_url":"https://api.github.com/repos/danialfarid/ng-file-upload","labels_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1583/labels{/name}","comments_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1583/comments","events_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1583/events","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1583","id":161164888,"number":1583,"title":"Tiff Thumbnail Issue","user":{"login":"infrarosso78","id":12814958,"avatar_url":"https://avatars.githubusercontent.com/u/12814958?v=3","gravatar_id":"","url":"https://api.github.com/users/infrarosso78","html_url":"https://github.com/infrarosso78","followers_url":"https://api.github.com/users/infrarosso78/followers","following_url":"https://api.github.com/users/infrarosso78/following{/other_user}","gists_url":"https://api.github.com/users/infrarosso78/gists{/gist_id}","starred_url":"https://api.github.com/users/infrarosso78/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infrarosso78/subscriptions","organizations_url":"https://api.github.com/users/infrarosso78/orgs","repos_url":"https://api.github.com/users/infrarosso78/repos","events_url":"https://api.github.com/users/infrarosso78/events{/privacy}","received_events_url":"https://api.github.com/users/infrarosso78/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-20T10:32:12Z","updated_at":"2016-06-22T10:03:09Z","closed_at":null,"body":"I am trying to show a thumb preview of the images user will upload but of course I've problem with tiff files. Is there anyway to do it? or eventually to show a default picture in case the user is trying to upload a tiff?"},"comment":{"url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/comments/227699213","html_url":"https://github.com/danialfarid/ng-file-upload/issues/1583#issuecomment-227699213","issue_url":"https://api.github.com/repos/danialfarid/ng-file-upload/issues/1583","id":227699213,"user":{"login":"infrarosso78","id":12814958,"avatar_url":"https://avatars.githubusercontent.com/u/12814958?v=3","gravatar_id":"","url":"https://api.github.com/users/infrarosso78","html_url":"https://github.com/infrarosso78","followers_url":"https://api.github.com/users/infrarosso78/followers","following_url":"https://api.github.com/users/infrarosso78/following{/other_user}","gists_url":"https://api.github.com/users/infrarosso78/gists{/gist_id}","starred_url":"https://api.github.com/users/infrarosso78/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infrarosso78/subscriptions","organizations_url":"https://api.github.com/users/infrarosso78/orgs","repos_url":"https://api.github.com/users/infrarosso78/repos","events_url":"https://api.github.com/users/infrarosso78/events{/privacy}","received_events_url":"https://api.github.com/users/infrarosso78/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T10:03:08Z","updated_at":"2016-06-22T10:03:08Z","body":"Thanks a lot. It worked partially. It's good to show another picture in case of tiff but doesn't show any jpg, gif, png, etc images. I fixed like this (hope it can be helpful to someone else):\r\n`img.upload-thumb(\r\n            ng-if=\"file.type != 'image/tiff'\"\r\n            ng-show='uploadForm.file.$valid'\r\n            ngf-thumbnail=\"file\"\r\n            ngf-size=\"{width: 120, height: 140, quality: 0.9}\")\r\n img.upload-thumb(\r\n            ng-if=\"file.type == 'image/tiff'\"\r\n            ng-show='uploadForm.file.$valid'\r\n            ngf-thumbnail=\"(file && file.type != 'image/tiff') || 'defaultImageUrl'\"\r\n            ngf-size=\"{width: 120, height: 140, quality: 0.9}\")`"}}
{"actor":{"display_login":"infrarosso78"}}