{"action":"created","issue":{"url":"https://api.github.com/repos/sjelfull/imgix/issues/16","repository_url":"https://api.github.com/repos/sjelfull/imgix","labels_url":"https://api.github.com/repos/sjelfull/imgix/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/sjelfull/imgix/issues/16/comments","events_url":"https://api.github.com/repos/sjelfull/imgix/issues/16/events","html_url":"https://github.com/sjelfull/imgix/issues/16","id":293678251,"number":16,"title":"width + ratio transform settings produce improperly sized images","user":{"login":"jeremyfrank","id":283397,"avatar_url":"https://avatars0.githubusercontent.com/u/283397?v=4","gravatar_id":"","url":"https://api.github.com/users/jeremyfrank","html_url":"https://github.com/jeremyfrank","followers_url":"https://api.github.com/users/jeremyfrank/followers","following_url":"https://api.github.com/users/jeremyfrank/following{/other_user}","gists_url":"https://api.github.com/users/jeremyfrank/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyfrank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyfrank/subscriptions","organizations_url":"https://api.github.com/users/jeremyfrank/orgs","repos_url":"https://api.github.com/users/jeremyfrank/repos","events_url":"https://api.github.com/users/jeremyfrank/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyfrank/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-01T20:48:38Z","updated_at":"2018-03-18T19:21:33Z","closed_at":null,"author_association":"NONE","body":"In the third image example below from the readme, where only the width and ratio parameters are present, the resulting image from imgix doesn't conform to the supplied aspect ratio. Also, the ratio parameter is sent in the request but it a parameter that imgix understands.\r\n\r\nThese transform options:\r\n```\r\n{% set thirdImage = craft.imgix.transformImage( asset, { width: 1920, ratio: 16/9}) %}\r\n```\r\n\r\nProduce this imgix querystring:\r\n```\r\n?fp-x=0.5&fp-y=0.5&ixlib=php-1.1.0&ratio=1.77777777778&w=1920\r\n```\r\n\r\nBoth w (width) and h (height) parameters should be present along with a fit parameter set to crop to ensure a proper output (when only width and ratio are supplied):\r\n```\r\n?fp-x=0.5&fp-y=0.5&ixlib=php-1.1.0&ratio=1.77777777778&w=1920&h=1080&fit=crop\r\n```"},"comment":{"url":"https://api.github.com/repos/sjelfull/imgix/issues/comments/374036772","html_url":"https://github.com/sjelfull/imgix/issues/16#issuecomment-374036772","issue_url":"https://api.github.com/repos/sjelfull/imgix/issues/16","id":374036772,"user":{"login":"skramstad","id":2582337,"avatar_url":"https://avatars0.githubusercontent.com/u/2582337?v=4","gravatar_id":"","url":"https://api.github.com/users/skramstad","html_url":"https://github.com/skramstad","followers_url":"https://api.github.com/users/skramstad/followers","following_url":"https://api.github.com/users/skramstad/following{/other_user}","gists_url":"https://api.github.com/users/skramstad/gists{/gist_id}","starred_url":"https://api.github.com/users/skramstad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skramstad/subscriptions","organizations_url":"https://api.github.com/users/skramstad/orgs","repos_url":"https://api.github.com/users/skramstad/repos","events_url":"https://api.github.com/users/skramstad/events{/privacy}","received_events_url":"https://api.github.com/users/skramstad/received_events","type":"User","site_admin":false},"created_at":"2018-03-18T19:21:33Z","updated_at":"2018-03-18T19:21:33Z","author_association":"NONE","body":"Hi.\r\n\r\nDo you include fit and crop in your config?\r\n\r\ni.e:\r\n`fit: 'crop',\r\ncrop: 'center,center',`\r\n\r\nIf not set the ratio will not work.\r\nYou can read more about crop settings here: https://docs.imgix.com/apis/url/size/crop"}}
{"actor":{"display_login":"skramstad"}}