montage not working
montage not working
Problem with montage. My runs were taking a very long time. I had to kill them and in no instance was there any output file. I then reduced the size of each
of the two input files from 1024x768 to 64x48 but still the run had to be
killed. By means of the top command I discovered that the process was in a sleep
state whenever it was sampled. Finally, I included a debugging trace.
My PC: Dell Inspiron-1525, OS: Ubuntu 10.04, ImageMagick: 6.3.7
The command I did:
montage -debug trace -geometry +4+4 -tile 1x little2.jpg little1.jpg result.jpg
The last part of the trace output:
2011-04-28T22:05:38+01:00 0:03 0.140u 6.3.7 Trace montage[3331]: xml-tree.c/unknown/511/Trace
...
2011-04-28T22:05:38+01:00 0:03 0.140u 6.3.7 Trace montage[3331]: xml-tree.c/unknown/511/Trace
...
2011-04-28T22:05:38+01:00 0:03 0.140u 6.3.7 Trace montage[3331]: xml-tree.c/unknown/511/Trace
"dbgtrace" 66L, 2969C 1,1 Top
of the two input files from 1024x768 to 64x48 but still the run had to be
killed. By means of the top command I discovered that the process was in a sleep
state whenever it was sampled. Finally, I included a debugging trace.
My PC: Dell Inspiron-1525, OS: Ubuntu 10.04, ImageMagick: 6.3.7
The command I did:
montage -debug trace -geometry +4+4 -tile 1x little2.jpg little1.jpg result.jpg
The last part of the trace output:
2011-04-28T22:05:38+01:00 0:03 0.140u 6.3.7 Trace montage[3331]: xml-tree.c/unknown/511/Trace
...
2011-04-28T22:05:38+01:00 0:03 0.140u 6.3.7 Trace montage[3331]: xml-tree.c/unknown/511/Trace
...
2011-04-28T22:05:38+01:00 0:03 0.140u 6.3.7 Trace montage[3331]: xml-tree.c/unknown/511/Trace
"dbgtrace" 66L, 2969C 1,1 Top
Re: montage not working
A clue to what's wrong is that in my directory /usr/local/share is a tar archive from an earlier version: ImageMagic-6.2.4/utilities.
Maybe I should remove that .tar file and do apt-get purge and then apt-get install of imagemagic.
Maybe I should remove that .tar file and do apt-get purge and then apt-get install of imagemagic.
Re: montage not working
I did do what I said in my previous posting - i.e. removed the old tar archive in /usr/local/bin/applications, purged
and re-installed imagemagic. It made no difference. - I get the same debug trace output. Help needed.
and re-installed imagemagic. It made no difference. - I get the same debug trace output. Help needed.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: montage not working
have you tried putting the input images right after montage:
montage little2.jpg little1.jpg -geometry +4+4 -tile 1x result.jpg
see http://www.imagemagick.org/Usage/montage/
montage little2.jpg little1.jpg -geometry +4+4 -tile 1x result.jpg
see http://www.imagemagick.org/Usage/montage/
Re: montage not working
I tried fw42's suggestion. It makes no difference. Evidently the important thing is that the last-entered
filename is to be the output and the other filenames, perhaps from a wildcard, are inputs.
filename is to be the output and the other filenames, perhaps from a wildcard, are inputs.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: montage not working
try
montage rose: rose: rose_tmp.png
also what do you get from
convert rose: rose_tmp.png
or
convert -version
montage rose: rose: rose_tmp.png
also what do you get from
convert rose: rose_tmp.png
or
convert -version
Re: montage not working
replying to fmw42---
montage rose: rose: rose_tmp.png
just sleeps till I kill it.
bertie@ubuntu:~$ convert -version
Version: ImageMagick 6.5.7-8 2010-12-02 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
Features: OpenMP
bertie@ubuntu:~$ montage -version
Version: ImageMagick 6.3.7 12/02/10 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC
Thanks for thinking about it. I hope this helps.
montage rose: rose: rose_tmp.png
just sleeps till I kill it.
bertie@ubuntu:~$ convert -version
Version: ImageMagick 6.5.7-8 2010-12-02 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
Features: OpenMP
bertie@ubuntu:~$ montage -version
Version: ImageMagick 6.3.7 12/02/10 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC
Thanks for thinking about it. I hope this helps.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: montage not working
My guess is that you need to upgrade your IM as both your versions are very old. Is it possible that you have a conflict between the two versions on your system.
Any way, at this point I should leave this issue to the IM developers to respond further.
Any way, at this point I should leave this issue to the IM developers to respond further.
Re: montage not working
I took fmw42's advice, purgged my Ubuntu IM and compiled IM from source and re-installed -
so now it's version is 6.6.9-7 and the executable is in /usr/local/bin.
My command line was
montage -geometry +4+4 -tile 1x little2.jpg little1.jpg result.jpg
This gave the following error output
montage: unable to open image `little2.jpg': @ error/blob.c/OpenBlob/2587.
montage: no decode delegate for this image format `little2.jpg' @ error/constitute.c/ReadImage/532.
montage: unable to open image `little1.jpg': @ error/blob.c/OpenBlob/2587.
montage: no decode delegate for this image format `little1.jpg' @ error/constitute.c/ReadImage/532.
montage: missing an image filename `result.jpg' @ error/montage.c/MontageImageCommand/1746.
little?.jpg were my input filenames. Those two files are currently being displayed on my Gnome Desktop.
result.jpg was my name for the output file.
Help still needed.
so now it's version is 6.6.9-7 and the executable is in /usr/local/bin.
My command line was
montage -geometry +4+4 -tile 1x little2.jpg little1.jpg result.jpg
This gave the following error output
montage: unable to open image `little2.jpg': @ error/blob.c/OpenBlob/2587.
montage: no decode delegate for this image format `little2.jpg' @ error/constitute.c/ReadImage/532.
montage: unable to open image `little1.jpg': @ error/blob.c/OpenBlob/2587.
montage: no decode delegate for this image format `little1.jpg' @ error/constitute.c/ReadImage/532.
montage: missing an image filename `result.jpg' @ error/montage.c/MontageImageCommand/1746.
little?.jpg were my input filenames. Those two files are currently being displayed on my Gnome Desktop.
result.jpg was my name for the output file.
Help still needed.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: montage not working
It would appear that you are missing the delegate libraries or IM cannot find them. What do you get from
convert -list configure
look at the line starting with DELEGATES and see if jpeg is listed as well as any other image format such as tiff, png, ghostscript etc. If not then re-install your delegates, then reinstall IM
convert -list configure
look at the line starting with DELEGATES and see if jpeg is listed as well as any other image format such as tiff, png, ghostscript etc. If not then re-install your delegates, then reinstall IM
Re: montage not working
bertie@ubuntu:~$ convert -list configure
Path: /usr/local/share/ImageMagick-6.6.9/configure.xml
Name Value
-------------------------------------------------------------------------------
CC gcc -std=gnu99 -std=gnu99
CFLAGS -fopenmp -g -O2 -Wall -pthread
CODER_PATH /usr/local/lib/ImageMagick-6.6.9/modules-Q16/coders
CONFIGURE ./configure
CONFIGURE_PATH /usr/local/etc/ImageMagick/
COPYRIGHT Copyright (C) 1999-2011 ImageMagick Studio LLC
CPPFLAGS -I/usr/local/include/ImageMagick
CXX g++
CXXFLAGS -g -O2 -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES mpeg
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fontconfig=no --with-gslib=no --with-fontpath= --with-rsvg=no --with-xml=no --with-perl=no
DOCUMENTATION_PATH /usr/local/share/doc/ImageMagick-6.6.9/
EXEC-PREFIX /usr/local
EXECUTABLE_PATH /usr/local/bin
FEATURES OpenMP
FILTER_PATH /usr/local/lib/ImageMagick-6.6.9/modules-Q16/filters
HOST i686-pc-linux-gnu
LDFLAGS -L/usr/local/lib
LIB_VERSION 0x669
LIB_VERSION_NUMBER 6,6,9,7
LIBRARY_PATH /usr/local/lib/ImageMagick-6.6.9
LIBS -lMagickCore -lm -lgomp -lpthread -lltdl
NAME ImageMagick
PCFLAGS -fopenmp
PREFIX /usr/local
QuantumDepth 16
RELEASE_DATE 2011-05-03
SHARE_PATH /usr/local/share/ImageMagick-6.6.9
SVN_REVISION exported
TARGET_CPU i686
TARGET_OS linux-gnu
TARGET_VENDOR pc
VERSION 6.6.9
WEBSITE http://www.imagemagick.org
Path: [built-in]
Path: /usr/local/share/ImageMagick-6.6.9/configure.xml
Name Value
-------------------------------------------------------------------------------
CC gcc -std=gnu99 -std=gnu99
CFLAGS -fopenmp -g -O2 -Wall -pthread
CODER_PATH /usr/local/lib/ImageMagick-6.6.9/modules-Q16/coders
CONFIGURE ./configure
CONFIGURE_PATH /usr/local/etc/ImageMagick/
COPYRIGHT Copyright (C) 1999-2011 ImageMagick Studio LLC
CPPFLAGS -I/usr/local/include/ImageMagick
CXX g++
CXXFLAGS -g -O2 -pthread
DEFS -DHAVE_CONFIG_H
DELEGATES mpeg
DISTCHECK_CONFIG_FLAGS --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-fontconfig=no --with-gslib=no --with-fontpath= --with-rsvg=no --with-xml=no --with-perl=no
DOCUMENTATION_PATH /usr/local/share/doc/ImageMagick-6.6.9/
EXEC-PREFIX /usr/local
EXECUTABLE_PATH /usr/local/bin
FEATURES OpenMP
FILTER_PATH /usr/local/lib/ImageMagick-6.6.9/modules-Q16/filters
HOST i686-pc-linux-gnu
LDFLAGS -L/usr/local/lib
LIB_VERSION 0x669
LIB_VERSION_NUMBER 6,6,9,7
LIBRARY_PATH /usr/local/lib/ImageMagick-6.6.9
LIBS -lMagickCore -lm -lgomp -lpthread -lltdl
NAME ImageMagick
PCFLAGS -fopenmp
PREFIX /usr/local
QuantumDepth 16
RELEASE_DATE 2011-05-03
SHARE_PATH /usr/local/share/ImageMagick-6.6.9
SVN_REVISION exported
TARGET_CPU i686
TARGET_OS linux-gnu
TARGET_VENDOR pc
VERSION 6.6.9
WEBSITE http://www.imagemagick.org
Path: [built-in]
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: montage not working
the only delegate library you have installed or that IM can find is mpeg. You are missing things like jpg, tiff, png, etc.DELEGATES mpeg
see http://www.imagemagick.org/download/delegates/
After you install any delegates that you want, you will likely need to re-install IM.
Re: montage not working
I went to www.imagemagick.org/download/delegates
I did not see a jpg but there was a jpeg: jpegsrcv8.tar.gz
I installed that, then reran the make install of ImageMagick and again tried my montage run this time
with .jpeg files with the following result:
bertie@ubuntu:~/Desktop$ montage -geometry +4+40 -tile 1x pesach2.jpeg rpesach1.jpeg result.jpeg
montage: no decode delegate for this image format `pesach2.jpeg' @ error/constitute.c/ReadImage/532.
montage: no decode delegate for this image format `rpesach1.jpeg' @ error/constitute.c/ReadImage/532.
montage: missing an image filename `result.jpeg' @ error/montage.c/MontageImageCommand/1746.
bertie@ubuntu:~/Desktop$
Stuck again!
I did not see a jpg but there was a jpeg: jpegsrcv8.tar.gz
I installed that, then reran the make install of ImageMagick and again tried my montage run this time
with .jpeg files with the following result:
bertie@ubuntu:~/Desktop$ montage -geometry +4+40 -tile 1x pesach2.jpeg rpesach1.jpeg result.jpeg
montage: no decode delegate for this image format `pesach2.jpeg' @ error/constitute.c/ReadImage/532.
montage: no decode delegate for this image format `rpesach1.jpeg' @ error/constitute.c/ReadImage/532.
montage: missing an image filename `result.jpeg' @ error/montage.c/MontageImageCommand/1746.
bertie@ubuntu:~/Desktop$
Stuck again!
Re: montage not working
Found and installed libjpeg-6b and tried montage again. --- exactly the same outcome.
Am I doing something wrong like forgetting to also do a make install in the IM directory or
forgetting to do ldconfig ?
Am I doing something wrong like forgetting to also do a make install in the IM directory or
forgetting to do ldconfig ?