Created
December 14, 2016 11:52
-
-
Save thejoltjoker/78a1bc427e75408e9ee121d01f4500fe to your computer and use it in GitHub Desktop.
append 4 photos to create one highres.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# files need to be named according to this convention: | |
# name.[####].part_##.ext | |
# example.1001.part_01.exr | |
filext=jpg | |
for i in `ls -t *part_01*`; do | |
echo 'Merging parts for '$i | |
echo ${i%part*}part_01.$filext | |
convert +append ${i%part*}part_01.$filext ${i%part*}part_02.$filext ${i%part*}_top.$filext | |
convert +append ${i%part*}part_03.$filext ${i%part*}part_04.$filext ${i%part*}_bottom.$filext | |
convert -append ${i%part*}_top.$filext ${i%part*}_bottom.$filext ${i%part*}merged.$filext | |
rm ${i%part*}_top.$filext ${i%part*}_bottom.$filext | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment