convert: unable to open image

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
velp
Posts: 3
Joined: 2016-08-04T02:34:53-07:00
Authentication code: 1151

convert: unable to open image

Post 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?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert: unable to open image

Post by fmw42 »

What is your IM version? What do you get from

Code: Select all

convert -version
Does it include delegates for jpg?
velp
Posts: 3
Joined: 2016-08-04T02:34:53-07:00
Authentication code: 1151

Re: convert: unable to open image

Post 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
velp
Posts: 3
Joined: 2016-08-04T02:34:53-07:00
Authentication code: 1151

Re: convert: unable to open image

Post by velp »

Maybe, I should have noted that the files I point to (like .../confusion/07_FRAMES/xxxx.JPG) are symbolic links...
Post Reply