3

I have a gif image that I am trying to import into the Mathematica Notebook, and I found the accepted answer of this question very useful: Is it possible to insert an animated image into Mathematica notebook?

So, I am typing:

Import["myimage.gif", "Animation"]

The problem is that now I want to resize it .. It is possible to drag and resize an individual image

enter image description here

But if I move the slider, now I have to resize every single of all the images that compose the GIF Image

enter image description here

How do I resize the whole animation?

Nau
  • 377
  • 2
  • 10

1 Answers1

1

You can first import the list of resized images (using ImageSize option for GIF Import) and then animate it with ListAnimate:

ListAnimate @ Import["myimage.gif", ImageSize -> {100, 200}]

Notice that

Import["myimage.gif", "Animation", ImageSize -> {100, 200}]

will not work because in this case ImageSize affects the animation window size and not the image itself.

rafalc
  • 1,359
  • 8
  • 16