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

InputType = 'base64' is failed #299

Open
AntHuiZi opened this issue Jul 10, 2024 · 3 comments
Open

InputType = 'base64' is failed #299

AntHuiZi opened this issue Jul 10, 2024 · 3 comments

Comments

@AntHuiZi
Copy link

Current behavior

example:
const imageStr = data:image/png;base64,iVBORw0KGgoAAAANS== or 'iVBORw0KGgoAAAANS==';
const result = await Image.compress(imageStr, {
input:'base64',
maxWidth: 1500,
maxHeight: 1500,
quality: 0.8
});
console.log('result:', result);
problem: I found that the result returned was empty.

Expected behavior

I hope to accept pictures with base64 characters and compress them

Platform

  • [✅] Android
  • [✅] iOS

React Native Version

"react-native": "0.74.1",
"react": "18.2.0",

React Native Compressor Version

"react-native-compressor": "1.8.25",

Reproducible Steps And Demo

Copy link

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

@nil1603
Copy link

nil1603 commented Oct 3, 2024

same issue, even though i have set returnableOutputType and ouput, but no luck.

@mohammed-io
Copy link

Same issue. Couldn't make it work.

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

3 participants