error using convert, "missing an image filename"

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
danpaluska
Posts: 7
Joined: 2009-09-20T08:01:51-07:00
Authentication code: 8675309

error using convert, "missing an image filename"

Post by danpaluska »

Code: Select all

timelapseguest@timelapse:~$ convert /scratch/tmp*.jpg -average foo.png
convert: missing an image filename `foo.png'.
i've used this line on other machines and not gotten an error.
this is really confusing me...
tried it with a bunch of different convert stuff and always getting this same error where is says the outputfilename is missing...
i've checked permissions and other stuff but still coming up blank. any thoughts?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: error using convert, "missing an image filename"

Post by fmw42 »

convert /scratch/tmp*.jpg -average foo.png
try

convert /scratch/tmp*.jpg -evaluate-sequence mean foo.png

-average was deprecated (though I thought it still worked) in favor of -evaluate-sequence, which allows min, max, mean as options


On my IM 6.6.7.6 Q16 Mac OSX Tiger, the following still works:

convert lena2.jpg zelda3.jpg -average tmp.png

try specifying two or three images explicitly as a test rather than the wild card and see if even that works.

This seems to work fine for me with 5 images:

convert /Users/fred/zelda/zelda* -average tmp2.png

Is your system installed with the png delegate?

Perhaps quotes might help

convert "/Users/fred/zelda/zelda*" -average tmp2.png


Does your directory for creating foo.png have write permissions?
danpaluska
Posts: 7
Joined: 2009-09-20T08:01:51-07:00
Authentication code: 8675309

Re: error using convert, "missing an image filename"

Post by danpaluska »

i have imagemagick 6.3.7 installed on a debian distro.
timelapseguest@timelapse:~$ convert /scratch/tmp*.jpg -evaluate-sequence mean foo.jpg
convert: unrecognized option `-evaluate-sequence'.
and now i just discovered that all the tmp*.jpg files i was trying to average were bogus files and i feel embarrased. average now works...
Thanks and hope i did not waste anyones time. glad to know -evaluate-sequence exists and i am assuming a later version will make that work for me.

rock!
-d
kbirecki
Posts: 8
Joined: 2011-02-23T03:19:57-07:00
Authentication code: 8675308

Re: error using convert, "missing an image filename"

Post by kbirecki »

In case anyone runs into this thread that is looking for a resolution to the ImageMagick problem stating "missing an image filename", I found a method that works and made it my first blog entry: http://hallsoftech.blogspot.com/2011/07 ... image.html
Post Reply