I\'m converting a gif into image sequences and that\'s working, but I want to resize the images then save them, I put the maximum width and height and I calculated the ratio