{"action":"opened","issue":{"url":"https://api.github.com/repos/fruitcake/magento2-image-optimizer/issues/1","repository_url":"https://api.github.com/repos/fruitcake/magento2-image-optimizer","labels_url":"https://api.github.com/repos/fruitcake/magento2-image-optimizer/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/fruitcake/magento2-image-optimizer/issues/1/comments","events_url":"https://api.github.com/repos/fruitcake/magento2-image-optimizer/issues/1/events","html_url":"https://github.com/fruitcake/magento2-image-optimizer/issues/1","id":298466589,"number":1,"title":"question - why not use plugin ?","user":{"login":"dan-ding","id":4367170,"avatar_url":"https://avatars1.githubusercontent.com/u/4367170?v=4","gravatar_id":"","url":"https://api.github.com/users/dan-ding","html_url":"https://github.com/dan-ding","followers_url":"https://api.github.com/users/dan-ding/followers","following_url":"https://api.github.com/users/dan-ding/following{/other_user}","gists_url":"https://api.github.com/users/dan-ding/gists{/gist_id}","starred_url":"https://api.github.com/users/dan-ding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dan-ding/subscriptions","organizations_url":"https://api.github.com/users/dan-ding/orgs","repos_url":"https://api.github.com/users/dan-ding/repos","events_url":"https://api.github.com/users/dan-ding/events{/privacy}","received_events_url":"https://api.github.com/users/dan-ding/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-20T04:11:12Z","updated_at":"2018-02-20T04:11:12Z","closed_at":null,"author_association":"NONE","body":"Instead of making new adapters, why not just use a plugin with the _after_ method that checks a configuration flag (enabled yes/no)? The way it's written it seems to be acting essentially like an _after_ method.\r\n\r\nThis would allow other user installed image adapters besides the default two, to work (in most cases) with this extension.\r\n\r\nThoughts?"}}
{"actor":{"display_login":"dan-ding"}}