How to Resize a Video Without Preserving Aspect Ratio in Node.JS

With your audience spread across all current and new online media platforms, it’s important to optimize your brand’s presence. Online video content is ideal for sharing visuals, communicating information, and drawing in a wide audience. You may run into trouble, though, when video formatting changes across media platforms. The following Cloudmersive API will help you resize your video to fit any format by making slight changes to the aspect ratio as needed.

Image for post
Image for post

Our first step is to install the client software:

npm install cloudmersive-video-api-client --save

Or, you can add this snippet to your package.json:

"dependencies": {
"cloudmersive-video-api-client": "^2.0.1"
}

Then, you can call the function, VideoResizeVideoSimple:

var CloudmersiveVideoApiClient = require('cloudmersive-video-api-client');
var defaultClient = CloudmersiveVideoApiClient.ApiClient.instance;

Just following these simple steps will help you increase your video’s reach across all social media platforms. You can access your personal API Key on the Cloudmersive website; it will provide you with up to 800 call across our library of APIs with options to scale according to your organization’s needs.

Written by

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store