{"action":"opened","issue":{"url":"https://api.github.com/repos/itkach/slob/issues/8","labels_url":"https://api.github.com/repos/itkach/slob/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/itkach/slob/issues/8/comments","events_url":"https://api.github.com/repos/itkach/slob/issues/8/events","html_url":"https://github.com/itkach/slob/issues/8","id":97344562,"number":8,"title":"[request] script to remove images.","user":{"login":"Dmole","id":1793802,"avatar_url":"https://avatars.githubusercontent.com/u/1793802?v=3","gravatar_id":"","url":"https://api.github.com/users/Dmole","html_url":"https://github.com/Dmole","followers_url":"https://api.github.com/users/Dmole/followers","following_url":"https://api.github.com/users/Dmole/following{/other_user}","gists_url":"https://api.github.com/users/Dmole/gists{/gist_id}","starred_url":"https://api.github.com/users/Dmole/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dmole/subscriptions","organizations_url":"https://api.github.com/users/Dmole/orgs","repos_url":"https://api.github.com/users/Dmole/repos","events_url":"https://api.github.com/users/Dmole/events{/privacy}","received_events_url":"https://api.github.com/users/Dmole/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-26T19:44:11Z","updated_at":"2015-07-26T19:44:11Z","closed_at":null,"body":"Something like \r\n```bash\r\nslob trim_img in.slob out.slob\r\n```\r\nwould be useful for making smaller files for Aard 2.\r\nOr a more generic regex filter to accomplish the same thing\r\n```bash\r\nslob trim --rewite_txt 's/<img[^<>]+src=\"[^\"]+\\.(jpg|png|gif)\"\\/?>/[image placeholder]/g' --exclude_files '.*\\.(jpg|png|gif)' in.slob out.slob\r\n```\r\nor whatever expressions best sute the format it's stored in.\r\n"}}