{"id":13676474,"url":"https://github.com/souvik-ghosh/react-native-create-thumbnail","last_synced_at":"2026-01-14T13:59:19.810Z","repository":{"id":38851113,"uuid":"226682287","full_name":"souvik-ghosh/react-native-create-thumbnail","owner":"souvik-ghosh","description":"iOS/Android thumbnail generator with support for both local and remote videos","archived":false,"fork":false,"pushed_at":"2025-11-29T20:17:19.000Z","size":1297,"stargazers_count":297,"open_issues_count":13,"forks_count":116,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-12-01T12:15:18.500Z","etag":null,"topics":["android","ios","react-native","thumbnails","video"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/souvik-ghosh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-12-08T14:43:48.000Z","updated_at":"2025-11-29T20:09:38.000Z","dependencies_parsed_at":"2023-11-21T20:28:20.256Z","dependency_job_id":"af0f9f3c-eed8-4f5d-9223-af01f897ca93","html_url":"https://github.com/souvik-ghosh/react-native-create-thumbnail","commit_stats":{"total_commits":49,"total_committers":15,"mean_commits":"3.2666666666666666","dds":0.326530612244898,"last_synced_commit":"0c366914e6d519b7f950f5cc1277c2bd1f455d82"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/souvik-ghosh/react-native-create-thumbnail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souvik-ghosh%2Freact-native-create-thumbnail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souvik-ghosh%2Freact-native-create-thumbnail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souvik-ghosh%2Freact-native-create-thumbnail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souvik-ghosh%2Freact-native-create-thumbnail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/souvik-ghosh","download_url":"https://codeload.github.com/souvik-ghosh/react-native-create-thumbnail/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souvik-ghosh%2Freact-native-create-thumbnail/sbom","scorecard":{"id":839564,"data":{"date":"2025-08-11","repo":{"name":"github.com/souvik-ghosh/react-native-create-thumbnail","commit":"83d627c212951bf79506987362f653da64e4d62d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":6,"reason":"Found 6/10 approved changesets -- score normalized to 6","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: example/android/gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-m5qc-5hw7-8vg7","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T20:07:44.396Z","repository_id":38851113,"created_at":"2025-08-23T20:07:44.396Z","updated_at":"2025-08-23T20:07:44.396Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28422395,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","ios","react-native","thumbnails","video"],"created_at":"2024-08-02T13:00:28.013Z","updated_at":"2026-01-14T13:59:19.795Z","avatar_url":"https://github.com/souvik-ghosh.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"# react-native-create-thumbnail\n\niOS/Android thumbnail generator with storage/cache management and support for both local and remote videos. `react-native-create-thumbnail` is a wrapper around\n[`AVAssetImageGenerator`](https://developer.apple.com/documentation/avfoundation/avassetimagegenerator?language=objc) (iOS) and [`MediaMetadataRetriever`](https://developer.android.com/reference/android/media/MediaMetadataRetriever) (Android)\n\n[![npm version](https://img.shields.io/npm/v/react-native-create-thumbnail.svg)](https://npmjs.com/package/react-native-create-thumbnail) [![npm downloads](https://img.shields.io/npm/dm/react-native-create-thumbnail.svg)](https://npmjs.com/package/react-native-create-thumbnail) [![Maintenance Status](https://img.shields.io/badge/maintenance-active-green.svg)](#maintenance-status)\n\n## Getting started\n\n1. Install library from `npm`\n\n   ```bash\n   npm i react-native-create-thumbnail\n   ```\n\n   or\n\n   ```bash\n   yarn add react-native-create-thumbnail\n   ```\n\n2. Link native code\n\n   With autolinking (react-native 0.60+)\n\n   ```bash\n   cd ios \u0026\u0026 pod install\n   ```\n\n   Pre 0.60\n\n   ```bash\n   react-native link react-native-create-thumbnail\n   ```\n\n## Usage\n\n```javascript\nimport { createThumbnail } from \"react-native-create-thumbnail\";\n\ncreateThumbnail({\n  url: '\u003cpath to video file\u003e',\n  timeStamp: 10000,\n})\n  .then(response =\u003e console.log({ response }))\n  .catch(err =\u003e console.log({ err }));\n```\n\n## Request Object\n\n| Property  |           Type            | Description                                                               |\n| --------- | :-----------------------: | :------------------------------------------------------------------------ |\n| url       |    `String` (required)    | Path to video file (local or remote)                                      |\n| timeStamp |  `Number` (default `0`)   | Thumbnail timestamp (in milliseconds)                                     |\n| format    | `String` (default `jpeg`) | Thumbnail format, can be one of: `jpeg`, or `png`                         |\n| maxWidth  | `Number` (default `512`)  | Max thumbnail width in px                                                 |\n| maxHeight | `Number` (default `512`)  | Max thumbnail height in px                                                |\n| dirSize   | `Number` (default `100`)  | Maximum size of the cache directory (in megabytes). When this directory is full, the previously generated thumbnails will be deleted to clear about half of it's size.                        |\n| headers   |         `Object`          | Headers to load the video with. e.g. `{ Authorization: 'someAuthToken' }` |\n| cacheName   |         `String` (optional)          | Cache name for this thumbnail to avoid duplicate generation. If specified, and a thumbnail already exists with the same cache name, it will be returned instead of generating a new one. |\n| timeToleranceMs | `Number` (default `2000`, Only iOS) | Time tolerance in ms for the system to pick the best matching video frame |\n| onlySyncedFrames | `Boolean` (default `true`, Only Android) | Specify how Android target frames. Use `true` to retrieve a sync frame that has a timestamp closest to the specified one. Use `false` to retrieve a frame that may or may not be a sync frame but is closest to the specified timestamp. |\n\n## Response Object\n\n| Property |   Type   | Description                 |\n| -------- | :------: | :-------------------------- |\n| path     | `String` | Path to generated thumbnail |\n| size     | `Number` | Size (in bytes) of thumbnail|\n| mime     | `String` | Mimetype of thumbnail       |\n| width    | `Number` | Thumbnail width             |\n| height   | `Number` | Thumbnail height            |\n\n#### Notes\n\nRequires following Permissions on android\n\n```bash\nREAD_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE\n```\n\n#### Limitations\n\n- Remote videos aren't supported on android sdk_version \u003c 14.\n- This is a **Native Module**, so it won't work in expo managed projects.\n- This library heavily depends on the native API's to generate the thumbnails. Thus it can only generate from the video formats/codecs that are supported by the device's OS.\n\n#### Credits\n\n- [`react-native-thumbnail`](https://www.npmjs.com/package/react-native-thumbnail) - A great source of inspiration\n- This project was bootstrapped with [`create-react-native-module`](https://github.com/brodybits/create-react-native-module)\n\n#### Maintenance Status\n\n**Active:** Bug reports, feature requests and pull requests are welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouvik-ghosh%2Freact-native-create-thumbnail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsouvik-ghosh%2Freact-native-create-thumbnail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouvik-ghosh%2Freact-native-create-thumbnail/lists"}