How To Convert a Video to PNG Still Frames in Node.JS

When working with video, it may become necessary to capture still frame images from your content for use as thumbnails, in promotional materials, or for a variety of other reasons. Rather than parsing through the entire video by hand, the following Cloudmersive API will allow you to capture up to 2000 total frames while also dictating your preferred dimensions for the PNG images.

Image for post
Image for post

Our first step is to install our client:

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

And then, we can call our function, VideoConvertToStillFrames:

The API Key can be retrieved from the Cloudmersive website at no cost and will provide you with up to 800 call across any of our APIs. With that, you can retrieve the perfect snapshot to represent your video project!

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