---
title: "May the Force Trim be with you: A New Feature in VE.SDK"
description: "Set the minimum and maximum duration of videos with our latest update."
url: "https://img.ly/blog/new-force-trim-function-for-videoeditor-sdk/"
type: "blog"
date: "2021-12-14"
author: "Neslihan"
tags: ["Release Notes","Video Editor","App Development","Social Media","Videos","Push2Medium","Company"]
---

> This is the markdown version of [May the Force Trim be with you: A New Feature in VE.SDK](https://img.ly/blog/new-force-trim-function-for-videoeditor-sdk/). For all pages in one file, see [llms-full.txt](https://img.ly/llms-full.txt). For an index of all available pages, see [llms.txt](https://img.ly/llms.txt).

---

It has been a fantastic year for video editing – the [video composition tool and audio support](https://img.ly/blog/video-composition-audio-support.md) enhanced our VideoEditor SDK offerings, enabling developers to bring more high-quality features right into your products and apps. Today, we deliver another feature to enhance your developer experience.

## Force Trim

The VideoEditor SDK trim tool allows your users to determine the start and end frame of a video clip, and thus change the duration of their footage. Now you are also able to **enforce a minimum and maximum duration** of videos.

![Set a minimum and/or a maximum duration for users.](https://blog.img.ly/2021/12/min-max-length-videos-app-1.png)

Additionally, the update allows configuring the **startup behavior** of your editor. Possible values are `always`, `ifNeeded`, and `silent` (the default).

- `always` will always automatically present the composition tool or the trim tool after opening the editor and force your users to change the length of the video(s).
- `ifNeeded` will only present  
   a) the composition tool, if your initial composition is longer than the maximum duration or shorter than the minimum duration, or  
   b) the trim tool, if your initial video is longer than the maximum duration.
- `silent` will automatically trim the video to the maximum duration without opening any tool.

Find the right set-up for your use-case in our official **documentation** for [iOS](https://img.ly/docs/vesdk/ios/guides/trim/force-trim/?utm_source=imgly&utm_medium=blog&utm_campaign=releasenotes) and [Android](https://img.ly/docs/vesdk/android/features/trim#how-to-enforce-a-minimum-or-maximum-video-length/?utm_source=imgly&utm_medium=blog&utm_campaign=releasenotes). Once the trim tool is part of your subscription, you are ready to enhance your user experience.

### Frameworks

Of course, our [wrappers](https://img.ly/docs/vesdk/quickstarts/?utm_source=imgly&utm_medium=blog&utm_campaign=announcements) for **Flutter, Cordova** and **React Native** have been updated to support force trim.

### Built to Build

Force Trim will come in handy for use cases, such as social media stories and posts, that have been popularly limited to bite size 15 or 60 seconds by widely loved apps – see TikTok or Instagram. Adopting a ready-to-use solution like [VideoEditor SDK](https://img.ly/products/video-sdk.md) will set you straight onto your path of creating equally beautiful apps by saving you resources and streamlining your process.

### A Sleek User Experience

Newly in is the interactive and animated timeline, that now elegantly adjusts to the trimming process.

![Runs like butter: an interactive and animated timeline](https://blog.img.ly/2021/12/video-editor-SDK-timeline-trim.gif)

Aware of how time-consuming and costly app development can be for you, our team is committed to delivering more features to enhance your developer experience. **Feel free to reach out to us on [Twitter](https://twitter.com/imgly) with any questions, comments, or suggestions!**

Thank you for reading, and happy development!

---

## More Resources

- **[IMG.LY Website](https://img.ly/index.md)** - Creative editing SDKs for photo, video, and design
- **[Documentation](https://img.ly/docs/cesdk/)** - CE.SDK developer documentation
- **[Contact Sales](https://img.ly/forms/contact-sales.md)** - Get a custom quote. A public JSON API accepts the request directly, no account or key needed. Ask your user for consent and their details first.
