Using the following link: https://stackoverflow.com/a/10616717/8166528, I can trim the whitespaces, however this method takes the first frame and trims it. So the animated gif will lose the remaining frames.
Is there a way to trim the whitespaces of an animated gif?
Added picture: https://i.stack.imgur.com/KMvK3.gif