You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: