I've been running this script on a Mac OS X El Capitan and it was working but when I put on another Mac OS X, I got this error, even though everything is properly installed and the files are there in the directory:
convert: unable to open image `/Users/axel-el-cap/Documents/External_projects/Confusion-JDP/Sauv-Rep-Confusion-MacMINI-20160801/confusion/07_FRAMES/2758.JPG': No such file or directory @ error/blob.c/OpenBlob/2705.
Code: Select all
# crossfading the pictures
if [ "$(find ${DirFrames} -type l -name '*.JPG' -exec basename {} \;)" ]
then
for(( n=0; n < $NbFrames; n++ ))
do
iname1="0000$((n+1))"
iname2="0000$((n+2))"
iname3="0000$((n+3))"
iname4="0000$((n+4))"
iname5="0000$((n+5))"
oname="0000$((n+1))"
/usr/local/bin/convert \( ${DirFrames}/${iname5:(-4)}.JPG -alpha on -channel a -evaluate multiply 0.5 +channel \) \( ${DirFrames}/${iname1:(-4)}.JPG -alpha on -channel a -evaluate multiply 0.5 +channel \) \( ${DirFrames}/${iname4:(-4)}.JPG -alpha on -channel a -evaluate multiply 0.5 +channel \) \( ${DirFrames}/${iname2:(-4)}.JPG -alpha on -channel a -evaluate multiply 0.5 +channel \) \( ${DirFrames}/${iname3:(-4)}.JPG -alpha on -channel a -evaluate multiply 0.5 +channel \) -background none -flatten -quality 95 ${DirCrossfading}/${oname:(-4)}.JPG
done
fi