souvik-ghosh / react-native-create-thumbnail

iOS/Android thumbnail generator with support for both local and remote videos
MIT License
248 stars 104 forks source link

Thumbnail generated on Android has rotation with it #23

Closed sanjeevyadavIT closed 4 years ago

sanjeevyadavIT commented 4 years ago

Describe the bug Hi, thank you for your library, I'm having a slight problem, I'm able to generate thumbnail successfully, but the Image that is being generated has rotation, see the image

To Reproduce Steps to reproduce the behavior:

  1. Send the url to be one of the local video from your android device

    const [videoThumbPath, setVideoThumbPath] = useState('');
    
    createThumbnail({
            url: PATH_TO_LOCAL_VIDEO_FROM_DEVICE,
          })
            .then(({ path }) => {
              setVideoThumbPath(path);
            });
  2. Render the thumbnail in Image component
<Image source={{ uri: videoThumbPath }} />

Version react-native-create-thumbnail 1.2.1

Expected Results Thumbnail is rotated, as a result, I have to manually set transform: [ rotate: '0deg' ] style in Image component, and I don't want to do that, because it is creating other probloems

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

sanjeevyadavIT commented 4 years ago

My, mistake, there was a problem with my testing video, sorry :)