I have a very large image ( >500 Mo !) containing a series of smaller images of the same size, in mosaic, as follows:

[ 1  2  3 ]
[ 4  5  6 ]
[ 7  8  9 ]

But in my case, there are hundreds of them.

I would like to make a gif of all the images, in the right order (1 to 9 here). I thought I could use GIMP to do this, but the only task of extracting the images looks complicated, so it may not be the way to go.

How should I do ?


  • Could you convert those images to separate files? Would be way easier that way. – Joonas Feb 20 '17 at 9:29
  • I don't know how to do, my source image is the way i explained - I could "un-mosaic" them with some software i guess ? – Magix Feb 20 '17 at 9:34
  • You might be able to use the record function of PS. Position, save, position, save, etc then use the recorded action on the other images. I know the GIMP doesn't have the record action functionality, though you can conceivably code your own. – PieBie Feb 20 '17 at 9:38

There are scripts such as this or this that will chop the image and export the tiles to files.

Then open an empty image of suitable size, and do File>Open as layers (you can select all the files in one shot).

If necessary there is even a transpose script to exchange/line columns in case the first script takes them by columns first.


Use ImageMagick. This is exactly what the tool was made for.

Or to be more specific use the montage command of ImageMagick is for making montages. The montage documentation includes many examples.

And the reverse operation of montage is documented under crop. This should cover all your needs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.