montage not working

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.
bertiec
Posts: 12
Joined: 2011-04-29T01:51:49-07:00
Authentication code: 8675308

montage not working

Post by bertiec »

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
bertiec
Posts: 12
Joined: 2011-04-29T01:51:49-07:00
Authentication code: 8675308

Re: montage not working

Post by bertiec »

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.
bertiec
Posts: 12
Joined: 2011-04-29T01:51:49-07:00
Authentication code: 8675308

Re: montage not working

Post by bertiec »

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

Re: montage not working

Post by fmw42 »

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/
bertiec
Posts: 12
Joined: 2011-04-29T01:51:49-07:00
Authentication code: 8675308

Re: montage not working

Post by bertiec »

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

Re: montage not working

Post by fmw42 »

try

montage rose: rose: rose_tmp.png

also what do you get from

convert rose: rose_tmp.png

or

convert -version
bertiec
Posts: 12
Joined: 2011-04-29T01:51:49-07:00
Authentication code: 8675308

Re: montage not working

Post by bertiec »

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

Re: montage not working

Post by fmw42 »

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.
bertiec
Posts: 12
Joined: 2011-04-29T01:51:49-07:00
Authentication code: 8675308

Re: montage not working

Post by bertiec »

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

Re: montage not working

Post by fmw42 »

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
bertiec
Posts: 12
Joined: 2011-04-29T01:51:49-07:00
Authentication code: 8675308

Re: montage not working

Post by bertiec »

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

Re: montage not working

Post by fmw42 »

DELEGATES mpeg
the only delegate library you have installed or that IM can find is mpeg. You are missing things like jpg, tiff, png, etc.

see http://www.imagemagick.org/download/delegates/

After you install any delegates that you want, you will likely need to re-install IM.
bertiec
Posts: 12
Joined: 2011-04-29T01:51:49-07:00
Authentication code: 8675308

Re: montage not working

Post by bertiec »

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

Re: montage not working

Post by fmw42 »

try libjpeg-6b.tar.gz search google for it
bertiec
Posts: 12
Joined: 2011-04-29T01:51:49-07:00
Authentication code: 8675308

Re: montage not working

Post by bertiec »

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 ?
Post Reply