I am using ImageIO to create a .gif file. I have 3 .png images with different sizes as:
(width, length, rgb)
(2520, 1800, 3)
(3840, 1800, 3)
(1800, 1800, 3)
As its visible that 2nd image is too wide and its going out of the frame. Is it possible to fix the frame size of the .gif so that it can accommodate the dimensions of all the three images?
Currently, its assigning 1st image's dimensions to the gif file.
Here is the code:
images = []
for filename in sorted(image_files):
image = imageio.imread(filename)
images.append(image)
imageio.mimsave('file.gif',images, duration=1)