Page 1 of 1

convert: unable to open image

Posted: 2016-08-04T02:42:25-07:00
by velp
Hello,

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
Can anybody help me, please?

Re: convert: unable to open image

Posted: 2016-08-04T08:39:14-07:00
by fmw42
What is your IM version? What do you get from

Code: Select all

convert -version
Does it include delegates for jpg?

Re: convert: unable to open image

Posted: 2016-08-04T09:31:30-07:00
by velp
Here is what I get:
Version: ImageMagick 6.9.5-4 Q16 x86_64 2016-07-30 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib

Re: convert: unable to open image

Posted: 2016-08-04T09:35:46-07:00
by velp
Maybe, I should have noted that the files I point to (like .../confusion/07_FRAMES/xxxx.JPG) are symbolic links...