Skip to content

Instantly share code, notes, and snippets.

@thejoltjoker
Created December 14, 2016 11:52
Show Gist options
  • Save thejoltjoker/78a1bc427e75408e9ee121d01f4500fe to your computer and use it in GitHub Desktop.
Save thejoltjoker/78a1bc427e75408e9ee121d01f4500fe to your computer and use it in GitHub Desktop.
append 4 photos to create one highres.
# 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