Last updated: November 29, 2024

<span aria-hidden="true" id="enhanced-gif-manipulation-with-new-frame-parameter"></span>

# Enhanced GIF manipulation with new 'frame' parameter

![Tim Koschützki](/assets/images/teammates/avatar-tim-kos-1.jpg?dpl=dpl_jNy8BiBxZhktJuztVZbdoF3yfb6q)

**Tim Koschützki**

Co-founder · Berlin, Germany · Show bio

[](https://x.com/tim%5Fkos)[](https://github.com/tim-kos)

We have a new parameter for the [/image/resize](/docs/robots/image-resize.md) Robot. It is called `frame` and allows you to select a specific frame to use for the operation when you are dealing with animated GIF files.

We got a customer request to optionally remove an animation from a gif. This was possible by e.g. converting it to a `.png`, but not while preserving its `.gif` extension.

Instead of a rudimentary `animated` flag, we chose to introduce the `frame` property for it. This allows our customers to do much more with animated GIFs, for example extracting thumbnails it.

The default value is `null` which means all frames are used (and in their exact order), effectively preserving the animation. You would use `1` for the first frame, `2` for the second and so on.

We have plans to support negative values as well in the future, so you could use `-1` to select the last frame, `-2` to select the last but one, and so on.

Enjoy!

[#image-processing-service](/blog/tags/image-processing-service.md)[#image-resize-robot](/blog/tags/image-resize-robot.md)

### 👩‍💻 Join 20k+ developers

Sign up for our [monthly newsletter](/newsletters.md) to receive direct links to 3 exclusive tech — and 2 product updates. No less, no more.

Your email:

Get access

## File uploading and encoding. Made simple.

Transloadit streamlines file handling for developers, trusted by brands like Coursera and The New York Times. We’re known for a reliable API, top-notch support, and a strong commitment to open source, with projects like [Uppy⁠](https://uppy.io) and [Tus⁠](https://tus.io) setting standards in file processing.

[Sign up](/c/)[Book a Demo](https://survey.typeform.com/to/kRg47Xi5)

No credit card needed

Cancel anytime
