https://github.com/bufferapp/thumby
An Android video thumbnail picker
https://github.com/bufferapp/thumby
Last synced: 7 months ago
JSON representation
An Android video thumbnail picker
- Host: GitHub
- URL: https://github.com/bufferapp/thumby
- Owner: bufferapp
- Created: 2019-01-31T09:01:59.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2021-05-04T10:44:22.000Z (over 4 years ago)
- Last Synced: 2025-04-15T07:06:15.495Z (9 months ago)
- Language: Kotlin
- Size: 5.66 MB
- Stars: 174
- Watchers: 4
- Forks: 22
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Thumby
Thumby is an easy-to-use, drop in video thumbnail picker for android.

# Using Thumby
As shown in the sample, you can launch thumby and pass in the desired uri like so:
startActivityForResult(ThumbyActivity.getStartIntent(this, someUri), RESULT_CODE_PICK_THUMBNAIL)
Once a thumbnail is selected, you can make use of the data that thumby returns. This is both the Uri of the video and the location of the thumbnail. You can then use this data to retrieve the frame for the given video, this can be done using a Thumby utility class:
val imageUri = data?.getParcelableExtra(EXTRA_URI) as Uri
val location = data.getLongExtra(EXTRA_THUMBNAIL, 0)
val bitmap = ThumbyUtils.getBitmapAtFrame(this, imageUri, location, someWidth, someHeight)