get_thumbnail_video
0.7.3, released 2 years ago by an unverified publisher
Generates image thumbnails from local video files, URLs, or assets.
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.
- stream_thumbnail
Create thumbnail images from local video files or URLs as bytes or files.
82Compare - video_thumbnail
Generates image thumbnails from local video files or URLs on Android and iOS.
58Compare - fc_native_video_thumbnail
Generate video thumbnails using native platform APIs
80Compare - video_player_android
Android implementation of the video_player plugin
88Compare
Works with
Packages commonly used together with get_thumbnail_video: ones it builds on, ones built on it, and its own family.
- webget_thumbnail_video depends on itLightweight bindings for browser APIs via JS interop
- plugin_platform_interfaceget_thumbnail_video depends on itReusable base class for platform interfaces of Flutter federated plugins.
- cross_fileget_thumbnail_video depends on itAn abstraction to allow working with files across multiple platforms.
- video_editor_2Built on get_thumbnail_videoA Flutter video editor widget package supporting crop, trim, rotation, and cover selection.