{"action":"created","issue":{"url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/839","labels_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/839/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/839/comments","events_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/839/events","html_url":"https://github.com/sonata-project/SonataMediaBundle/pull/839","id":103729025,"number":839,"title":"images with 1px height or width could not be computed","user":{"login":"OskarStark","id":995707,"avatar_url":"https://avatars.githubusercontent.com/u/995707?v=3","gravatar_id":"","url":"https://api.github.com/users/OskarStark","html_url":"https://github.com/OskarStark","followers_url":"https://api.github.com/users/OskarStark/followers","following_url":"https://api.github.com/users/OskarStark/following{/other_user}","gists_url":"https://api.github.com/users/OskarStark/gists{/gist_id}","starred_url":"https://api.github.com/users/OskarStark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OskarStark/subscriptions","organizations_url":"https://api.github.com/users/OskarStark/orgs","repos_url":"https://api.github.com/users/OskarStark/repos","events_url":"https://api.github.com/users/OskarStark/events{/privacy}","received_events_url":"https://api.github.com/users/OskarStark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-28T14:33:03Z","updated_at":"2015-08-31T06:15:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/pulls/839","html_url":"https://github.com/sonata-project/SonataMediaBundle/pull/839","diff_url":"https://github.com/sonata-project/SonataMediaBundle/pull/839.diff","patch_url":"https://github.com/sonata-project/SonataMediaBundle/pull/839.patch"},"body":"as the scale method of box uses ```round()``` instead of ```scale()```, we use the logic from the ```scale()``` method and return the ```Box()```-object directly\r\n\r\nthis is the refrence of the ```scale()``` method:\r\n```php\r\n    /**\r\n     * {@inheritdoc}\r\n     */\r\n    public function scale($ratio)\r\n    {\r\n        return new Box(round($ratio * $this->width), round($ratio * $this->height));\r\n    }\r\n```\r\n\r\nso ```ceil()``` keep us safe!!"},"comment":{"url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/comments/136277653","html_url":"https://github.com/sonata-project/SonataMediaBundle/pull/839#issuecomment-136277653","issue_url":"https://api.github.com/repos/sonata-project/SonataMediaBundle/issues/839","id":136277653,"user":{"login":"OskarStark","id":995707,"avatar_url":"https://avatars.githubusercontent.com/u/995707?v=3","gravatar_id":"","url":"https://api.github.com/users/OskarStark","html_url":"https://github.com/OskarStark","followers_url":"https://api.github.com/users/OskarStark/followers","following_url":"https://api.github.com/users/OskarStark/following{/other_user}","gists_url":"https://api.github.com/users/OskarStark/gists{/gist_id}","starred_url":"https://api.github.com/users/OskarStark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OskarStark/subscriptions","organizations_url":"https://api.github.com/users/OskarStark/orgs","repos_url":"https://api.github.com/users/OskarStark/repos","events_url":"https://api.github.com/users/OskarStark/events{/privacy}","received_events_url":"https://api.github.com/users/OskarStark/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T06:15:52Z","updated_at":"2015-08-31T06:15:52Z","body":"if you like to try this by yourself use this sample image:\r\n![bg_banner](https://cloud.githubusercontent.com/assets/995707/9573100/73f5de3c-4fb8-11e5-9506-5b578be85336.jpg)\r\n"}}