How combine multiples images from a sequence of them, using any language code? : I'm setting up a wiki, for a game, and i need to put gifs for make the site more easy to understand. But i hava a problema, to make the gifs, i need to merge some images, and with i go one by one i never and this work. So what code i need, our program for make this work more fast?

I'm tried some codes with pithon, and i don't have sucess. The only way i can make work was using a Paint our photoshop for combine this images.

I tried this code:

    import numpy as np
    from PIL import Image
    images_list = []
    for i in range(1,4): #insert last number of photo
    images_list.append(str(i)+'.PNG')
    count = 1;

    directory = "C:/Users/Windows/Desktop/BloodStoneSprites/sprites1"  
    #change to directory where your photos are
    ext = ".PNG"
    new_file_name = "vimage-"
    new_directory = "C:/Users/Windows/Desktop/BloodStoneSprites/Uniao" # 
    change to path of new directory where you want your photos to be saved


    for j in range(0,len(images_list),2):
    name = new_file_name + str(j) + ext
    two_images_list = [images_list[j],images_list[j+1]]
    imgs = [ Image.open(i) for i in two_images_list ]
    min_img_shape = sorted( [(np.sum(i.size), i.size ) for i in imgs])[0][1]
    imgs_comb = np.hstack( (np.asarray( i.resize(min_img_shape) ) for i in 
    imgs ) )
    imgs_comb = Image.fromarray( imgs_comb)
    imgs_comb.save(new_directory+'/'+name )
    count +=1

And here is some of images i need to combine:
https://imgur.com/a/BBNGjuf

