-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Getting error while image compression. #19
Comments
@krupalikevadiya did you install |
No there is no any description to add react-native-fs in Readme. Anyway let me check by adding it. |
@krupalikevadiya this package is in progress. I will add a description or remove fs in the future. |
@krupalikevadiya fixed in |
Okk it is worked for image compression but does not for video compression.It gives same size of video after compression. |
@krupalikevadiya with if you wanna compress video which is below |
Yes i used this props but did not get compressed video. Here is my code.
Also here result is origional video url not compressed one. |
@krupalikevadiya can you upload the video and share the link here so I can test it on my side |
@nomi9995 any update on it? |
@krupalikevadiya I will check it when I am at the home. I will let you know after 5 hour |
okay thanks for quick reply. |
@krupalikevadiya we are using NextLevelSessionExporter pod for compression videos on ios. but on this video, it is giving an exception, therefore, I am returning the same URI. I have created issue on |
okk thanks and let me know once it is resolved...same thing happen in android to. |
@krupalikevadiya sure. can you send me a reproducible example for android? |
ImagePicker.openPicker({
} And error is : https://prnt.sc/197jr8u |
@krupalikevadiya can you try |
Hey @nomi9995 it is worked with compressionMethod: 'auto' in android but does not work with compressionMethod: 'manual' |
@krupalikevadiya I think we cannot set bitrate:16. can you try with bitrate 450000 |
Getting same error of asynctask with following options i tried both bitrate:16 and bitrate:450000. Error. : https://prnt.sc/198rpuk |
@krupalikevadiya can you add video link here? |
With same video which i use in ios. |
@nomi9995 any update on it? ..i need this package to compress video. |
Please check below attached screenshot for more details and also i added my code.
Image.compress(path, {
maxWidth:width,
maxHeight:.height,
input: 'uri',
output: 'jpg',
quality: 0.5,
returnableOutputType: 'uri',
})
.then(async (compressedFileUri) => {
console.log('===========image compressed=============' + JSON.stringify(detail, null, 2))
The text was updated successfully, but these errors were encountered: