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

Reduce the library size , after generating apk size to much larger than expected #360

Open
kapilmyakal opened this issue Mar 17, 2022 · 3 comments

Comments

@kapilmyakal
Copy link

Dear @shahen94 , the package size is too lare because of this apk size increasing can you reduce the size ,
please revert me with best solution Thank you...

software version
react-native-video-processing 2.0.0
react-native 0.64
node 17.4.0

Source Code:
const origin = await ProcessingManager.getVideoInfo(image.path);

        const compressionOptions = {
            width: origin.size && origin.size.width / 3,
            height: origin.size && origin.size.height / 3,
            bitrateMultiplier: 7,
            minimumBitrate: 300000,
        };

        await ProcessingManager.compress(image.path, compressionOptions)
        .then((data) => {
            if(data)
                file.uri = data.source
            else
                file.uri = image.path
        }).catch(error => {
            console.log('compression error', error);
        });
@pierroo
Copy link

pierroo commented Apr 4, 2022

I just realized this package is indeed 103Mb (we can see it here: https://www.npmjs.com/package/react-native-video-processing)
=> That is completely insane; quite unfortunate.

@kapilmyakal did you come up with a solution since; or potentially another library that you tested and works for you?

@fluxgenic
Copy link

I am facing same issue after install and generate the apk. app size increased from 85mb to 270 mb. may i know what is the issue? how this can be reduced to use this package? kindly help on this.

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

4 participants
@pierroo @kapilmyakal @fluxgenic and others