montage.exe -mode Concatenate memory error

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
oyapar

montage.exe -mode Concatenate memory error

Post by oyapar »

hi all,

i am new imagemagick and i have to merge two map

i use following comment "montage merged1.jpeg merged2.jpeg -mode Concatenate -tile x1 mergedlast.jpeg"

and then

application error occurs and it said " the memory could not be written" on ibm x series 226 with 4gb ram

merged1.jpeg= 11.555 kb and 5088*9000
merged2.jpeg= 9.555 kb and 5088*9000

i need help pls

i hope there is a simple solution
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: montage.exe -mode Concatenate memory error

Post by magick »

We ran a memory debugger on your command and no problems are reported. We're using ImageMagick 6.3.8-7, the latest release. Try adding '-limit memory 1 -limit map 1' to the beginning of your command line to force the pixels to disk rather than memory. See if that makes a difference.
oyapar

Re: montage.exe -mode Concatenate memory error

Post by oyapar »

thaks your response,

i may be find out "the memory could not be written " error reason

there were two different imagemagick version at the same time on computer , after one of them is removed , the command ran without error,

but now my maps bigger (50 mb) and the error is 'insufficient memory case 4 ' :(
oyapar

Re: montage.exe -mode Concatenate memory error

Post by oyapar »

hi again,

i add '-limit memory 1 -limit map 1' command and no error
thanks a lot.

and now i try to merge 200 mb maps
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: montage.exe -mode Concatenate memory error

Post by magick »

Issue your command and go eat lunch. It will complete successfully eventually. You can speed up the process by upgrading your distribution of ImageMagick and running on a faster computer with more memory or using some other program. See http://www.imagemagick.org/script/architecture.php for a discussion on why ImageMagick can be slow with large images.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: montage.exe -mode Concatenate memory error

Post by fmw42 »

Another simpler method to merge images is the -append and +append commands

See:

http://www.imagemagick.org/Usage/layers/#append

I do not know how it compares in speed and memory requirements to montage with mode concatenate, but the command is much simpler.
Post Reply