Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] exported video PHAsset stays in tmp folder and dramatically increases application storage size #294

Open
1 task done
iserzh opened this issue Jun 13, 2024 · 1 comment

Comments

@iserzh
Copy link

iserzh commented Jun 13, 2024

Current behavior

After compressing a local video asset (PHAsset), a temporary file (not the compressed one) will remain in storage, increasing the application size.

It is not possible to clean an exported PHAsset on the consumer side due to a lack of tmp path support from compressVideo in react-native-compression. This results in two files being created: a compressed file and an exported file before compression.

Expected behavior

Tmp files should be removed after compression or compressVideo should privde url to manually remove this file

Platform

  • [] Android
  • iOS

React Native Version

0.73.2

React Native Compressor Version

1.8.24

Reproducible Steps And Demo

  1. Compress PHAsset (something from camera roll)
  2. Remove file that was returned from compressVideo method
  3. Check app storage usage or list files in tmp directory
Copy link

👋 @iserzh
Thanks for opening your issue here! If you find this package useful hit the star🌟!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant