{"action":"closed","issue":{"url":"https://api.github.com/repos/photopea/UTIF.js/issues/45","repository_url":"https://api.github.com/repos/photopea/UTIF.js","labels_url":"https://api.github.com/repos/photopea/UTIF.js/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/photopea/UTIF.js/issues/45/comments","events_url":"https://api.github.com/repos/photopea/UTIF.js/issues/45/events","html_url":"https://github.com/photopea/UTIF.js/issues/45","id":367429741,"node_id":"MDU6SXNzdWUzNjc0Mjk3NDE=","number":45,"title":"How to scale image to smaller canvas?","user":{"login":"reecefenwick","id":7043425,"node_id":"MDQ6VXNlcjcwNDM0MjU=","avatar_url":"https://avatars3.githubusercontent.com/u/7043425?v=4","gravatar_id":"","url":"https://api.github.com/users/reecefenwick","html_url":"https://github.com/reecefenwick","followers_url":"https://api.github.com/users/reecefenwick/followers","following_url":"https://api.github.com/users/reecefenwick/following{/other_user}","gists_url":"https://api.github.com/users/reecefenwick/gists{/gist_id}","starred_url":"https://api.github.com/users/reecefenwick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reecefenwick/subscriptions","organizations_url":"https://api.github.com/users/reecefenwick/orgs","repos_url":"https://api.github.com/users/reecefenwick/repos","events_url":"https://api.github.com/users/reecefenwick/events{/privacy}","received_events_url":"https://api.github.com/users/reecefenwick/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-06T06:41:11Z","updated_at":"2018-10-06T10:04:42Z","closed_at":"2018-10-06T10:04:42Z","author_association":"NONE","body":"Thanks for the great library!\r\n\r\nI'm trying to use this with React, and used the code for `UTIF. replaceIMG()` to get me started.\r\n\r\nI'm using your sample image from https://www.photopea.com/api/img/G4.TIF which is quite large\r\n\r\nI've setup a sanbox with a 600x600 canvas and I'm trying to scale that image to fit in with everything visible, but cannot seem to get context.scale(x,y) to work.\r\n\r\nAre you able to offer any advice on how to scale the image? I see photopea handles it way, so figured I'm just doing something wrong."}}
{"actor":{"display_login":"photopea"}}