Appending Large Images Using Streams
Posted: 2018-07-07T09:40:16-07:00
I am working on a project where I need to append two very large TIF images vertically. Each image is several hundred MBs. We have very limited resources as we are using Amazon Lambda function compute service. So, we have memory and disk limitations.
I have been using the following to do the work.
Because of the size of the images, we are running into resource problems, both disk and memory.
I have tried using -limit, but this only partially helps.
I would like to know if I can use the "stream" option (https://www.imagemagick.org/script/stream.php) in ImageMagick to perform this operation using less memory and disk space. I understand the basic concepts of streaming, but from all the examples I have seen on using "stream", I cannot figure out how to do this. Again, just looking for example usage.
Thanks for your help.
I have been using the following to do the work.
Code: Select all
magick convert image1.tif image2.tif -append result.tif
I have tried using -limit, but this only partially helps.
I would like to know if I can use the "stream" option (https://www.imagemagick.org/script/stream.php) in ImageMagick to perform this operation using less memory and disk space. I understand the basic concepts of streaming, but from all the examples I have seen on using "stream", I cannot figure out how to do this. Again, just looking for example usage.
Thanks for your help.