Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ######################################################################
- #Copyright (C) 2020 Kris Occhipinti
- #https://filmsbykris.com
- #This program is free software: you can redistribute it and/or modify
- #it under the terms of the GNU General Public License as published by
- #the Free Software Foundation, either version 3 of the License, or
- #(at your option) any later version.
- #This program is distributed in the hope that it will be useful,
- #but WITHOUT ANY WARRANTY; without even the implied warranty of
- #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- #GNU General Public License for more details.
- #You should have received a copy of the GNU General Public License
- #along with this program. If not, see <http://www.gnu.org/licenses/>.
- ######################################################################
- [[ "$#" -lt 2 ]] && echo "Usage: $0 <left img> <right img>" && exit 1
- #get seperate color channels
- echo "Generating Color Channel Images"
- convert "$1" -channel BG -fx 0 /tmp/imageOut_L.jpg
- convert "$2" -channel R -fx 0 /tmp/imageOut_R.jpg
- #create file with layers
- convert /tmp/imageOut_L.jpg /tmp/imageOut_R.jpg /tmp/output.tif
- #open in gimp
- echo "Opening GIMP"
- gimp /tmp/output.tif
- sleep 5
- read -p "Press Enter to Delete temp files and continue"
- rm /tmp/imageOut_L.jpg /tmp/imageOut_R.jpg /tmp/output.tif
- echo "RED over LEFT EYE"
Add Comment
Please, Sign In to add comment