{"action":"closed","issue":{"url":"https://api.github.com/repos/owen2345/camaleon-cms/issues/808","repository_url":"https://api.github.com/repos/owen2345/camaleon-cms","labels_url":"https://api.github.com/repos/owen2345/camaleon-cms/issues/808/labels{/name}","comments_url":"https://api.github.com/repos/owen2345/camaleon-cms/issues/808/comments","events_url":"https://api.github.com/repos/owen2345/camaleon-cms/issues/808/events","html_url":"https://github.com/owen2345/camaleon-cms/issues/808","id":321712944,"number":808,"title":"Images are not being created in different versions","user":{"login":"sebastianGitDL","id":1608166,"avatar_url":"https://avatars0.githubusercontent.com/u/1608166?v=4","gravatar_id":"","url":"https://api.github.com/users/sebastianGitDL","html_url":"https://github.com/sebastianGitDL","followers_url":"https://api.github.com/users/sebastianGitDL/followers","following_url":"https://api.github.com/users/sebastianGitDL/following{/other_user}","gists_url":"https://api.github.com/users/sebastianGitDL/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastianGitDL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastianGitDL/subscriptions","organizations_url":"https://api.github.com/users/sebastianGitDL/orgs","repos_url":"https://api.github.com/users/sebastianGitDL/repos","events_url":"https://api.github.com/users/sebastianGitDL/events{/privacy}","received_events_url":"https://api.github.com/users/sebastianGitDL/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-05-09T20:22:26Z","updated_at":"2018-05-16T20:36:45Z","closed_at":"2018-05-16T20:36:45Z","author_association":"NONE","body":"Hello! I was just wondering if there is a way to configure this tool to upload an image in different sizes apart from the original one. For example, if I upload \"example.jpg\", I want to also have multiple images created with size 100x75 and 240x180 apart from the original one.  After investigating a little bit I have found that I can accomplish this by using the hook ```before_upload``` and setting the params ```versions```. At the moment I have something like this:\r\n\r\nsystem.json:\r\n```\r\n  \"helpers\": [\"ApplicationHelper\"],\r\n  \"hooks\": {\r\n    \"before_upload\": [\"set_size_for_images\"]\r\n  }\r\n```\r\n\r\napplication_helper.rb:\r\n```\r\n  def set_size_for_images(settings)\r\n    settings[:versions] = '100x75,240x180'\r\n  end\r\n```\r\n\r\nHowever, having this configuration does not works. Camaleon only uploads the image in the original size. I am currently trying to find out the reason behind this by I was not lucky so far.\r\n\r\nAnyway, is this something that you already have under the radar? or is this issue completely new? I was not able to find any other issue open related to this."}}
{"actor":{"display_login":"sebastianGitDL"}}