{"action":"created","issue":{"url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-bundle/issues/71","labels_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-bundle/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-bundle/issues/71/comments","events_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-bundle/issues/71/events","html_url":"https://github.com/open-orchestra/open-orchestra-media-bundle/issues/71","id":95215232,"number":71,"title":"Improve ImageResizerManager to allow dynamic formats for crop method and no resize","user":{"login":"clement-michelet","id":4611569,"avatar_url":"https://avatars.githubusercontent.com/u/4611569?v=3","gravatar_id":"","url":"https://api.github.com/users/clement-michelet","html_url":"https://github.com/clement-michelet","followers_url":"https://api.github.com/users/clement-michelet/followers","following_url":"https://api.github.com/users/clement-michelet/following{/other_user}","gists_url":"https://api.github.com/users/clement-michelet/gists{/gist_id}","starred_url":"https://api.github.com/users/clement-michelet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clement-michelet/subscriptions","organizations_url":"https://api.github.com/users/clement-michelet/orgs","repos_url":"https://api.github.com/users/clement-michelet/repos","events_url":"https://api.github.com/users/clement-michelet/events{/privacy}","received_events_url":"https://api.github.com/users/clement-michelet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-15T14:52:52Z","updated_at":"2015-07-15T15:05:07Z","closed_at":null,"body":"If you want to apply crop transformation image without resize transformation, you can't as the format is mandatory. You also cannot modify the pre-defined format on the fly as a workaround.\r\n\r\nProposal:\r\n* crop action must only be used for cropping image (i.e. remove resize part)\r\n* introduce a new method cropAndResize for doing both crop and resize action\r\n* allow to add new formats"},"comment":{"url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-bundle/issues/comments/121645372","html_url":"https://github.com/open-orchestra/open-orchestra-media-bundle/issues/71#issuecomment-121645372","issue_url":"https://api.github.com/repos/open-orchestra/open-orchestra-media-bundle/issues/71","id":121645372,"user":{"login":"nicolasThal","id":2675545,"avatar_url":"https://avatars.githubusercontent.com/u/2675545?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasThal","html_url":"https://github.com/nicolasThal","followers_url":"https://api.github.com/users/nicolasThal/followers","following_url":"https://api.github.com/users/nicolasThal/following{/other_user}","gists_url":"https://api.github.com/users/nicolasThal/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasThal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasThal/subscriptions","organizations_url":"https://api.github.com/users/nicolasThal/orgs","repos_url":"https://api.github.com/users/nicolasThal/repos","events_url":"https://api.github.com/users/nicolasThal/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasThal/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T15:05:07Z","updated_at":"2015-07-15T15:05:07Z","body":"You can add new formats with the `open_orchestra_media.thumbnail` configuration key.\r\n\r\nWhen you do a crop action, we have to garantie that the result will still be in the constraint you give (heigh, width or both) that's the reason fo the resize"}}