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

On image compression android error Width and height must be > 0 #282

Closed
1 task done
sreedevi111 opened this issue Apr 2, 2024 · 1 comment
Closed
1 task done

Comments

@sreedevi111
Copy link

Current behavior

On compressing image with local path (eg: /Users/Desktop/checkImage.png), getting error on android like
Width and height must be > 0. In ios it is working fine

Expected behavior

Image need to be compressed.

Platform

  • Android

React Native Version

0.73.6

React Native Compressor Version

^1.8.24

Reproducible Steps And Demo

useEffect(() => {
const fetchData = async() => {
try{
const result = await Image.compress('Users/Downloads/image.jpg', {
returnableOutputType: uri
})
console.log("Result", result)
}
catch (e){
console.log("Error", e)
}
fetchData()
},[])

Copy link

github-actions bot commented Apr 2, 2024

👋 @sreedevi111
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