Skip to content
pubscout

get_thumbnail_video

0.7.3, released 2 years ago by an unverified publisher

Generates image thumbnails from local video files, URLs, or assets.

$ flutter pub add get_thumbnail_video
Source repository

What it does

A Flutter plugin that creates video thumbnails returning them either as raw bytes in memory or saved as a file. It supports JPEG, PNG, and WEBP formats across Android, iOS, and Web platforms.

AI-written summary of version 0.7.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display a video preview image or grid of video thumbnails in your app.
  • You want to generate thumbnails from remote video URLs or local files.

Skip it when

  • The video hosting server on the web lacks CORS headers or HTTP range requests support.
  • You need a full video playback solution rather than just static thumbnails.

Strengths

  • Supports both in-memory bytes and file output.
  • Works on Android, iOS, and Web.
  • Provides control over image format, dimensions, and quality.

Weaknesses

  • Web usage has strict requirements regarding server CORS headers and HTTP range headers.
  • Known minor performance issues generating WebP thumbnails on iOS using libwebp.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
3

Add the dependency to pubspec.yaml. No extra native permissions are strictly required just to generate a thumbnail from a path or URL.

final uint8list = await VideoThumbnail.thumbnailData(
  video: videofile.path,
  imageFormat: ImageFormat.JPEG,
  maxWidth: 128,
  quality: 25,
);

Alternatives

Packages that do the same job and could replace get_thumbnail_video.

Works with

Packages commonly used together with get_thumbnail_video: ones it builds on, ones built on it, and its own family.