{"action":"created","issue":{"url":"https://api.github.com/repos/gemini-testing/gemini/issues/430","repository_url":"https://api.github.com/repos/gemini-testing/gemini","labels_url":"https://api.github.com/repos/gemini-testing/gemini/issues/430/labels{/name}","comments_url":"https://api.github.com/repos/gemini-testing/gemini/issues/430/comments","events_url":"https://api.github.com/repos/gemini-testing/gemini/issues/430/events","html_url":"https://github.com/gemini-testing/gemini/pull/430","id":148109756,"number":430,"title":"Fix image crop area calculation for fractional pixel ratio values","user":{"login":"tormozz48","id":996162,"avatar_url":"https://avatars.githubusercontent.com/u/996162?v=3","gravatar_id":"","url":"https://api.github.com/users/tormozz48","html_url":"https://github.com/tormozz48","followers_url":"https://api.github.com/users/tormozz48/followers","following_url":"https://api.github.com/users/tormozz48/following{/other_user}","gists_url":"https://api.github.com/users/tormozz48/gists{/gist_id}","starred_url":"https://api.github.com/users/tormozz48/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tormozz48/subscriptions","organizations_url":"https://api.github.com/users/tormozz48/orgs","repos_url":"https://api.github.com/users/tormozz48/repos","events_url":"https://api.github.com/users/tormozz48/events{/privacy}","received_events_url":"https://api.github.com/users/tormozz48/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gemini-testing/gemini/labels/review","name":"review","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-13T16:09:53Z","updated_at":"2016-04-14T06:34:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/gemini-testing/gemini/pulls/430","html_url":"https://github.com/gemini-testing/gemini/pull/430","diff_url":"https://github.com/gemini-testing/gemini/pull/430.diff","patch_url":"https://github.com/gemini-testing/gemini/pull/430.patch"},"body":"Add `_.ceil` round up for document size dimensions for prevent invalid usage of \"page coordinates\" for\r\ncontroversial cases and fractional pixel ratio value\r\n\r\n@sipayRT @j0tunn"},"comment":{"url":"https://api.github.com/repos/gemini-testing/gemini/issues/comments/209781757","html_url":"https://github.com/gemini-testing/gemini/pull/430#issuecomment-209781757","issue_url":"https://api.github.com/repos/gemini-testing/gemini/issues/430","id":209781757,"user":{"login":"j0tunn","id":7701229,"avatar_url":"https://avatars.githubusercontent.com/u/7701229?v=3","gravatar_id":"","url":"https://api.github.com/users/j0tunn","html_url":"https://github.com/j0tunn","followers_url":"https://api.github.com/users/j0tunn/followers","following_url":"https://api.github.com/users/j0tunn/following{/other_user}","gists_url":"https://api.github.com/users/j0tunn/gists{/gist_id}","starred_url":"https://api.github.com/users/j0tunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j0tunn/subscriptions","organizations_url":"https://api.github.com/users/j0tunn/orgs","repos_url":"https://api.github.com/users/j0tunn/repos","events_url":"https://api.github.com/users/j0tunn/events{/privacy}","received_events_url":"https://api.github.com/users/j0tunn/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T06:34:54Z","updated_at":"2016-04-14T06:34:54Z","body":"Хм.. нам бы по хорошему воспроизвести кейс, при котором проблема проявляется. Т.к. при текущих значениях `1280xчто-то-там` и `pixelRatio = 1.5` значение `documentWidth` будет `854`, и при обратном преобразовании `854*1.5 = 1281`, `_.ceil` ничего не дает, но все отрабатывает штатно.\r\nКстати, а мы не хотим округлять до числа, кратного двойке? Я всякие разрешения видел, но все числа четные."}}