react-native-create-thumbnail icon indicating copy to clipboard operation
react-native-create-thumbnail copied to clipboard

Thumbnail not generating from the storage/emulated folder

Open demedos opened this issue 3 years ago • 2 comments
trafficstars

Describe the bug I'm using react-native-image-crop-picker to take a video; the path is passed to the createThumbnail function, but even through I get a response, it looks like the file hasn't been created. I'm testing on a Huawei P40 lite 5G, and it happens both on the development and release apk builds. My coworkers told me that the aab from the play store works correctly on other devices, so it may be affecting Huawei devices only.

To Reproduce Happens in any apk build, both in release and development mode on Huawei devices

Version react-native-create-thumbnail version 1.5.1 react-native: 0.67.4

Expected Results The thumbnail is generated

Snack, code example, screenshot, or link to a repository

const path = "file:///storage/emulated/0/Android/data/com.example/files/Pictures/video-9f84865d-f2a7-498c-8682-cf1cdac081597870956076344084936.mp4"
RNFS.exists(path) -> true

const newPath = "file:///data/user/0/com.example/cache/thumbnails/thumb-61cc418f-c84d-4d78-8c98-b8bc148bad38"
RNFS.exists(newPath) -> false

demedos avatar Jun 06 '22 08:06 demedos

@demedos did you got any solution to this. I think this issue occurs only on high definition video. See : https://github.com/souvik-ghosh/react-native-create-thumbnail/issues/47#issuecomment-908838277

siddharth-kt avatar Aug 29 '22 18:08 siddharth-kt

Nope, no solution. Huawei devices are still affected by this bug

demedos avatar Aug 30 '22 10:08 demedos

closing due to inactivity

souvik-ghosh avatar Dec 29 '23 23:12 souvik-ghosh