{"action":"created","issue":{"url":"https://api.github.com/repos/cubicdaiya/ngx_small_light/issues/49","repository_url":"https://api.github.com/repos/cubicdaiya/ngx_small_light","labels_url":"https://api.github.com/repos/cubicdaiya/ngx_small_light/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/cubicdaiya/ngx_small_light/issues/49/comments","events_url":"https://api.github.com/repos/cubicdaiya/ngx_small_light/issues/49/events","html_url":"https://github.com/cubicdaiya/ngx_small_light/pull/49","id":164753386,"number":49,"title":"Add cx,cy to specify crop coordinate.","user":{"login":"osamunmun","id":1015367,"avatar_url":"https://avatars.githubusercontent.com/u/1015367?v=3","gravatar_id":"","url":"https://api.github.com/users/osamunmun","html_url":"https://github.com/osamunmun","followers_url":"https://api.github.com/users/osamunmun/followers","following_url":"https://api.github.com/users/osamunmun/following{/other_user}","gists_url":"https://api.github.com/users/osamunmun/gists{/gist_id}","starred_url":"https://api.github.com/users/osamunmun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osamunmun/subscriptions","organizations_url":"https://api.github.com/users/osamunmun/orgs","repos_url":"https://api.github.com/users/osamunmun/repos","events_url":"https://api.github.com/users/osamunmun/events{/privacy}","received_events_url":"https://api.github.com/users/osamunmun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-11T03:22:32Z","updated_at":"2016-07-13T07:52:18Z","closed_at":"2016-07-12T12:49:37Z","pull_request":{"url":"https://api.github.com/repos/cubicdaiya/ngx_small_light/pulls/49","html_url":"https://github.com/cubicdaiya/ngx_small_light/pull/49","diff_url":"https://github.com/cubicdaiya/ngx_small_light/pull/49.diff","patch_url":"https://github.com/cubicdaiya/ngx_small_light/pull/49.patch"},"body":"- specify crop start coordinate \r\n  - (0, 0) is center of image, and cx, cy represent coordinate based on (0, 0)\r\n  - ex: cx=50 mean crop image center is 50pixel right from center of original image.(minus is left)\r\n  - ex: cy=30 mean crop image center is 30pixel up from center of original image.(minus is down)\r\n "},"comment":{"url":"https://api.github.com/repos/cubicdaiya/ngx_small_light/issues/comments/232282328","html_url":"https://github.com/cubicdaiya/ngx_small_light/pull/49#issuecomment-232282328","issue_url":"https://api.github.com/repos/cubicdaiya/ngx_small_light/issues/49","id":232282328,"user":{"login":"osamunmun","id":1015367,"avatar_url":"https://avatars.githubusercontent.com/u/1015367?v=3","gravatar_id":"","url":"https://api.github.com/users/osamunmun","html_url":"https://github.com/osamunmun","followers_url":"https://api.github.com/users/osamunmun/followers","following_url":"https://api.github.com/users/osamunmun/following{/other_user}","gists_url":"https://api.github.com/users/osamunmun/gists{/gist_id}","starred_url":"https://api.github.com/users/osamunmun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osamunmun/subscriptions","organizations_url":"https://api.github.com/users/osamunmun/orgs","repos_url":"https://api.github.com/users/osamunmun/repos","events_url":"https://api.github.com/users/osamunmun/events{/privacy}","received_events_url":"https://api.github.com/users/osamunmun/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T07:52:17Z","updated_at":"2016-07-13T07:52:17Z","body":"I agree using `sx` and `sy`. \r\nI tried using `sx` and `sy`, but it doesn't work well.\r\nI guess that code below is coresopnding location.\r\n\r\nngx_small_light_imagemagick.c \r\n```\r\np = ngx_snprintf(crop_geo, sizeof(crop_geo) - 1, \"%f!x%f!+%f+%f\", sz.sw, sz.sh, sz.sx, sz.sy);\r\n```\r\n\r\nThe result is different from `convert -crop 600x338+50+0 test.jpg crop_test_600x338+50+0.jpg`, result on local imagemagick cmd.\r\nCropped image by ngx_small_light is zoomed and crop base coordinate looks at upper left.\r\nI couldn't resolve this behavior."}}
{"actor":{"display_login":"osamunmun"}}