{"action":"created","issue":{"url":"https://api.github.com/repos/lovell/sharp/issues/1007","repository_url":"https://api.github.com/repos/lovell/sharp","labels_url":"https://api.github.com/repos/lovell/sharp/issues/1007/labels{/name}","comments_url":"https://api.github.com/repos/lovell/sharp/issues/1007/comments","events_url":"https://api.github.com/repos/lovell/sharp/issues/1007/events","html_url":"https://github.com/lovell/sharp/issues/1007","id":270211966,"number":1007,"title":"Speed up the for  dynamical operation","user":{"login":"exotfboy","id":16457917,"avatar_url":"https://avatars2.githubusercontent.com/u/16457917?v=4","gravatar_id":"","url":"https://api.github.com/users/exotfboy","html_url":"https://github.com/exotfboy","followers_url":"https://api.github.com/users/exotfboy/followers","following_url":"https://api.github.com/users/exotfboy/following{/other_user}","gists_url":"https://api.github.com/users/exotfboy/gists{/gist_id}","starred_url":"https://api.github.com/users/exotfboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exotfboy/subscriptions","organizations_url":"https://api.github.com/users/exotfboy/orgs","repos_url":"https://api.github.com/users/exotfboy/repos","events_url":"https://api.github.com/users/exotfboy/events{/privacy}","received_events_url":"https://api.github.com/users/exotfboy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-01T06:48:13Z","updated_at":"2017-11-01T10:37:44Z","closed_at":null,"author_association":"NONE","body":"Hi:\r\n\r\nI have a big jpg source file with size of (32768x32768), and I have to extract from the source and generate a new image according to the client request.\r\n\r\nBefore I found `sharp`, I use Java2D interfaces like `BufferedImage` to do the operation, and it will take almost 20s to load the image at the first time, and then the following operation like `resize` `crop` will take about 500ms more or less. However it cost almost 1.2GB memory.\r\n\r\nWhen I tried `sharp`, I found that the same operation like `extract` `resize` will take up only 120M memory, this is amazing, however each request will take almost 15s. \r\n\r\nIs it possible to improve this?"},"comment":{"url":"https://api.github.com/repos/lovell/sharp/issues/comments/341069800","html_url":"https://github.com/lovell/sharp/issues/1007#issuecomment-341069800","issue_url":"https://api.github.com/repos/lovell/sharp/issues/1007","id":341069800,"user":{"login":"lovell","id":210965,"avatar_url":"https://avatars3.githubusercontent.com/u/210965?v=4","gravatar_id":"","url":"https://api.github.com/users/lovell","html_url":"https://github.com/lovell","followers_url":"https://api.github.com/users/lovell/followers","following_url":"https://api.github.com/users/lovell/following{/other_user}","gists_url":"https://api.github.com/users/lovell/gists{/gist_id}","starred_url":"https://api.github.com/users/lovell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovell/subscriptions","organizations_url":"https://api.github.com/users/lovell/orgs","repos_url":"https://api.github.com/users/lovell/repos","events_url":"https://api.github.com/users/lovell/events{/privacy}","received_events_url":"https://api.github.com/users/lovell/received_events","type":"User","site_admin":false},"created_at":"2017-11-01T10:37:44Z","updated_at":"2017-11-01T10:37:44Z","author_association":"OWNER","body":"Extracting multiple regions from the same input image sounds like you might be hand-rolling an image pyramid for some kind of \"slippy map\". If so, did you see [tile](http://sharp.dimens.io/en/stable/api-output/#tile)?\r\n\r\nPlease can you provide a sample of the code you are using."}}
{"actor":{"display_login":"lovell"}}