{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/pulls/1","id":188129415,"html_url":"https://github.com/gravicle/Base64-Alfred-Workflow/pull/1","diff_url":"https://github.com/gravicle/Base64-Alfred-Workflow/pull/1.diff","patch_url":"https://github.com/gravicle/Base64-Alfred-Workflow/pull/1.patch","issue_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/issues/1","number":1,"state":"open","locked":false,"title":"Fix and optimize the export code","user":{"login":"copriwolf","id":10501324,"avatar_url":"https://avatars3.githubusercontent.com/u/10501324?v=4","gravatar_id":"","url":"https://api.github.com/users/copriwolf","html_url":"https://github.com/copriwolf","followers_url":"https://api.github.com/users/copriwolf/followers","following_url":"https://api.github.com/users/copriwolf/following{/other_user}","gists_url":"https://api.github.com/users/copriwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/copriwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copriwolf/subscriptions","organizations_url":"https://api.github.com/users/copriwolf/orgs","repos_url":"https://api.github.com/users/copriwolf/repos","events_url":"https://api.github.com/users/copriwolf/events{/privacy}","received_events_url":"https://api.github.com/users/copriwolf/received_events","type":"User","site_admin":false},"body":"Hi, actually I recode the export code:\r\n\r\n```bash\r\nset theScript to \"openssl base64 -in \" & quoted form of _path & \" xargs | awk '{print \"data:image/png;base64,\"$0}' | pbcopy && echo 'ok!'\"\r\n```\r\n\r\n1. Add the prefix code `data:image/png;base64,`, so we can use directly use the code to anywhere.\r\n2. After Generating code, I use `| pbcopy` which can put the data to the Mac clipboard\r\n3. Add `&& echo 'ok!'` to check the whole flow has been running.\r\n\r\nLooking forward to your reply.Thx.","created_at":"2018-05-15T13:31:44Z","updated_at":"2018-05-15T13:31:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/pulls/1/commits","review_comments_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/pulls/1/comments","review_comment_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/issues/1/comments","statuses_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/statuses/9d3d1b5a08503f49fade9c99ed52b77f61f677ff","head":{"label":"copriwolf:master","ref":"master","sha":"9d3d1b5a08503f49fade9c99ed52b77f61f677ff","user":{"login":"copriwolf","id":10501324,"avatar_url":"https://avatars3.githubusercontent.com/u/10501324?v=4","gravatar_id":"","url":"https://api.github.com/users/copriwolf","html_url":"https://github.com/copriwolf","followers_url":"https://api.github.com/users/copriwolf/followers","following_url":"https://api.github.com/users/copriwolf/following{/other_user}","gists_url":"https://api.github.com/users/copriwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/copriwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copriwolf/subscriptions","organizations_url":"https://api.github.com/users/copriwolf/orgs","repos_url":"https://api.github.com/users/copriwolf/repos","events_url":"https://api.github.com/users/copriwolf/events{/privacy}","received_events_url":"https://api.github.com/users/copriwolf/received_events","type":"User","site_admin":false},"repo":{"id":133517206,"name":"Base64-Alfred-Workflow","full_name":"copriwolf/Base64-Alfred-Workflow","owner":{"login":"copriwolf","id":10501324,"avatar_url":"https://avatars3.githubusercontent.com/u/10501324?v=4","gravatar_id":"","url":"https://api.github.com/users/copriwolf","html_url":"https://github.com/copriwolf","followers_url":"https://api.github.com/users/copriwolf/followers","following_url":"https://api.github.com/users/copriwolf/following{/other_user}","gists_url":"https://api.github.com/users/copriwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/copriwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/copriwolf/subscriptions","organizations_url":"https://api.github.com/users/copriwolf/orgs","repos_url":"https://api.github.com/users/copriwolf/repos","events_url":"https://api.github.com/users/copriwolf/events{/privacy}","received_events_url":"https://api.github.com/users/copriwolf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/copriwolf/Base64-Alfred-Workflow","description":"A simple workflow to convert images to Base64 encoding. The result is saved on desktop.","fork":true,"url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow","forks_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/forks","keys_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/teams","hooks_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/hooks","issue_events_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/issues/events{/number}","events_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/events","assignees_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/assignees{/user}","branches_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/branches{/branch}","tags_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/tags","blobs_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/statuses/{sha}","languages_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/languages","stargazers_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/stargazers","contributors_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/contributors","subscribers_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/subscribers","subscription_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/subscription","commits_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/contents/{+path}","compare_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/merges","archive_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/downloads","issues_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/issues{/number}","pulls_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/pulls{/number}","milestones_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/milestones{/number}","notifications_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/labels{/name}","releases_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/releases{/id}","deployments_url":"https://api.github.com/repos/copriwolf/Base64-Alfred-Workflow/deployments","created_at":"2018-05-15T13:05:11Z","updated_at":"2018-05-15T13:30:11Z","pushed_at":"2018-05-15T13:30:10Z","git_url":"git://github.com/copriwolf/Base64-Alfred-Workflow.git","ssh_url":"git@github.com:copriwolf/Base64-Alfred-Workflow.git","clone_url":"https://github.com/copriwolf/Base64-Alfred-Workflow.git","svn_url":"https://github.com/copriwolf/Base64-Alfred-Workflow","homepage":null,"size":148,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gravicle:master","ref":"master","sha":"e828b33b3c20be0d95f1f16f274e58e7d1ef70df","user":{"login":"gravicle","id":1091114,"avatar_url":"https://avatars3.githubusercontent.com/u/1091114?v=4","gravatar_id":"","url":"https://api.github.com/users/gravicle","html_url":"https://github.com/gravicle","followers_url":"https://api.github.com/users/gravicle/followers","following_url":"https://api.github.com/users/gravicle/following{/other_user}","gists_url":"https://api.github.com/users/gravicle/gists{/gist_id}","starred_url":"https://api.github.com/users/gravicle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravicle/subscriptions","organizations_url":"https://api.github.com/users/gravicle/orgs","repos_url":"https://api.github.com/users/gravicle/repos","events_url":"https://api.github.com/users/gravicle/events{/privacy}","received_events_url":"https://api.github.com/users/gravicle/received_events","type":"User","site_admin":false},"repo":{"id":16742452,"name":"Base64-Alfred-Workflow","full_name":"gravicle/Base64-Alfred-Workflow","owner":{"login":"gravicle","id":1091114,"avatar_url":"https://avatars3.githubusercontent.com/u/1091114?v=4","gravatar_id":"","url":"https://api.github.com/users/gravicle","html_url":"https://github.com/gravicle","followers_url":"https://api.github.com/users/gravicle/followers","following_url":"https://api.github.com/users/gravicle/following{/other_user}","gists_url":"https://api.github.com/users/gravicle/gists{/gist_id}","starred_url":"https://api.github.com/users/gravicle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravicle/subscriptions","organizations_url":"https://api.github.com/users/gravicle/orgs","repos_url":"https://api.github.com/users/gravicle/repos","events_url":"https://api.github.com/users/gravicle/events{/privacy}","received_events_url":"https://api.github.com/users/gravicle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gravicle/Base64-Alfred-Workflow","description":"A simple workflow to convert images to Base64 encoding. The result is saved on desktop.","fork":false,"url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow","forks_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/forks","keys_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/teams","hooks_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/hooks","issue_events_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/issues/events{/number}","events_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/events","assignees_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/assignees{/user}","branches_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/branches{/branch}","tags_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/tags","blobs_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/statuses/{sha}","languages_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/languages","stargazers_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/stargazers","contributors_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/contributors","subscribers_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/subscribers","subscription_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/subscription","commits_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/contents/{+path}","compare_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/merges","archive_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/downloads","issues_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/issues{/number}","pulls_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/pulls{/number}","milestones_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/milestones{/number}","notifications_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/labels{/name}","releases_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/releases{/id}","deployments_url":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/deployments","created_at":"2014-02-11T19:29:46Z","updated_at":"2015-04-04T23:21:49Z","pushed_at":"2014-02-11T19:34:05Z","git_url":"git://github.com/gravicle/Base64-Alfred-Workflow.git","ssh_url":"git@github.com:gravicle/Base64-Alfred-Workflow.git","clone_url":"https://github.com/gravicle/Base64-Alfred-Workflow.git","svn_url":"https://github.com/gravicle/Base64-Alfred-Workflow","homepage":null,"size":148,"stargazers_count":1,"watchers_count":1,"language":"AppleScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/pulls/1"},"html":{"href":"https://github.com/gravicle/Base64-Alfred-Workflow/pull/1"},"issue":{"href":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/issues/1"},"comments":{"href":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/gravicle/Base64-Alfred-Workflow/statuses/9d3d1b5a08503f49fade9c99ed52b77f61f677ff"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":3,"additions":11,"deletions":1,"changed_files":4}}
{"actor":{"display_login":"copriwolf"}}