stacking images in a last modification timeline us

2019-08-26 18:56发布

I am trying to create an image timeline (vertical) of a set of images stored in all subdirectories of a given directory (stacked in last modification order)

#!/bin/bash/

find $1 -name "*.jpg"  -printf "%TY-%Tm-%Td %TT %p\n"|sort -n|cut -f3 -d" ">junk9090.txt

echo $1.jpg|tr / _ >> junk9090.txt

convert -append $(cat junk9090.txt)

rm junk9090.txt

When the image is outputted it stacks them in order except the last image and then it stacks the first n-1 images again.

Desired output

Output from my bash script

0条回答
登录 后发表回答