I have 2 jpegs, about 16 000 x 24 000 px. I have to rotate the second and append it on top of the first, something like this
I've found in the docs how to rotate (MarvinImage.rotate) but i haven't found a method that can append the 2 images.
Also, any suggestions of other libraries that can do this is also greatly appreciated. What I've tried until now:
BufferedImage and ImageIO: takes a whole lot of memory, would probably work if the write would work (JPEGImageWriter basically complains about the image being too big - integer overflow)
ImageMagick and im4java - works but terribly slow (13 minutes and 100% disk usage)
Thanks!
Bogdan

In ImageMagick 6, that is easy to do.
Input 1 (lena.jpg):
Input 2 (mandril3.jpg):
Unix Syntax:
For Windows syntax, remove the \s. For ImageMagick 7, replace convert with magick.
ImageMagick comes with Linux distributions. It is also available for Mac OSX and Windows.