{"action":"opened","issue":{"url":"https://api.github.com/repos/jeff1evesque/machine-learning/issues/2741","repository_url":"https://api.github.com/repos/jeff1evesque/machine-learning","labels_url":"https://api.github.com/repos/jeff1evesque/machine-learning/issues/2741/labels{/name}","comments_url":"https://api.github.com/repos/jeff1evesque/machine-learning/issues/2741/comments","events_url":"https://api.github.com/repos/jeff1evesque/machine-learning/issues/2741/events","html_url":"https://github.com/jeff1evesque/machine-learning/issues/2741","id":178854679,"number":2741,"title":"Allow webcompilers to copy SVG images","user":{"login":"jeff1evesque","id":2907085,"avatar_url":"https://avatars.githubusercontent.com/u/2907085?v=3","gravatar_id":"","url":"https://api.github.com/users/jeff1evesque","html_url":"https://github.com/jeff1evesque","followers_url":"https://api.github.com/users/jeff1evesque/followers","following_url":"https://api.github.com/users/jeff1evesque/following{/other_user}","gists_url":"https://api.github.com/users/jeff1evesque/gists{/gist_id}","starred_url":"https://api.github.com/users/jeff1evesque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeff1evesque/subscriptions","organizations_url":"https://api.github.com/users/jeff1evesque/orgs","repos_url":"https://api.github.com/users/jeff1evesque/repos","events_url":"https://api.github.com/users/jeff1evesque/events{/privacy}","received_events_url":"https://api.github.com/users/jeff1evesque/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jeff1evesque/machine-learning/labels/build","name":"build","color":"8A23A9"},{"url":"https://api.github.com/repos/jeff1evesque/machine-learning/labels/enhancement","name":"enhancement","color":"4E66FF"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/jeff1evesque/machine-learning/milestones/5","html_url":"https://github.com/jeff1evesque/machine-learning/milestones/0.5","labels_url":"https://api.github.com/repos/jeff1evesque/machine-learning/milestones/5/labels","id":1362064,"number":5,"title":"0.5","description":"The following features will be added:\r\n\r\n- standardized API to allow users to create a user account, stored in the database\r\n- web-interface to allow users to create an account, stored in the database\r\n- standardized API to validate logged in users\r\n- web-interface to validate logged in users\r\n- standardized API to allow users to review all datasets they stored:\r\n  - delete portions of the dataset\r\n- web-interface to allow users to review all datasets they stored:\r\n  - delete portions of the dataset\r\n- standardized API to allow users to review all models they stored:\r\n  - delete created models\r\n- web-interface to allow users to review all models they stored:\r\n  - delete created models\r\n- implement nginx webserver\r\n- split `tbl_feature_value` into two tables:\r\n  - `tbl_svm_data`\r\n  - `tbl_svr_data`\r\n- `index` relevant database tables","creator":{"login":"jeff1evesque","id":2907085,"avatar_url":"https://avatars.githubusercontent.com/u/2907085?v=3","gravatar_id":"","url":"https://api.github.com/users/jeff1evesque","html_url":"https://github.com/jeff1evesque","followers_url":"https://api.github.com/users/jeff1evesque/followers","following_url":"https://api.github.com/users/jeff1evesque/following{/other_user}","gists_url":"https://api.github.com/users/jeff1evesque/gists{/gist_id}","starred_url":"https://api.github.com/users/jeff1evesque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeff1evesque/subscriptions","organizations_url":"https://api.github.com/users/jeff1evesque/orgs","repos_url":"https://api.github.com/users/jeff1evesque/repos","events_url":"https://api.github.com/users/jeff1evesque/events{/privacy}","received_events_url":"https://api.github.com/users/jeff1evesque/received_events","type":"User","site_admin":false},"open_issues":29,"closed_issues":17,"state":"open","created_at":"2015-10-18T04:16:23Z","updated_at":"2016-09-23T11:37:12Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-09-23T11:37:11Z","updated_at":"2016-09-23T11:37:11Z","closed_at":null,"body":"We need to change our `imagemin` bash script for the [docker](https://github.com/jeff1evesque/machine-learning/blob/master/puppet/environment/docker/modules/compiler/scripts/imagemin), and [vagrant](https://github.com/jeff1evesque/machine-learning/blob/master/puppet/environment/vagrant/modules/compiler/scripts/imagemin) environment:\r\n\r\n```puppet\r\n...\r\n  # watch '[root_dir]/src/img/' subdirectory\r\n  inotifywait \"$1\"/src/img/ -m -e close_write -e move --format %f |\r\n    # Minify Images\r\n    while read -r file; do\r\n      # filename (without directory path)\r\n      filename=\"${file##*/}\"\r\n      # get last `.` occurence as starting extension\r\n      file_extension=\"${file##*.}\"\r\n\r\n      # minify with 'imagemin'\r\n      if [ \"$file_extension\" = 'gif' ]; then\r\n        cp \"$1/src/img/$file\" \"$1/interface/static/img/$filename\"\r\n      else\r\n        imagemin \"$1/src/img/$file\" > \"$1/interface/static/img/$filename\" &\r\n      fi\r\n    done\r\n...\r\n```\r\n\r\nneeds to be changed as follows:\r\n\r\n```bash\r\n...\r\n  # watch '[root_dir]/src/img/' subdirectory\r\n  inotifywait \"$1\"/src/img/ -m -e close_write -e move --format %f |\r\n    # Minify Images\r\n    while read -r file; do\r\n      # filename (without directory path)\r\n      filename=\"${file##*/}\"\r\n      # get last `.` occurence as starting extension\r\n      file_extension=\"${file##*.}\"\r\n\r\n      # minify with 'imagemin'\r\n      if [ \"$file_extension\" = 'gif' ] || [ \"file_extension\" = 'svg' ]; then\r\n        cp \"$1/src/img/$file\" \"$1/interface/static/img/$filename\"\r\n      else\r\n        imagemin \"$1/src/img/$file\" > \"$1/interface/static/img/$filename\" &\r\n      fi\r\n    done\r\n...\r\n```"}}
{"actor":{"display_login":"jeff1evesque"}}