-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Uploading multiple photos disregards maxWidth/Height props #532
Comments
do you have some time to investigate this? |
No unfortunately, I don't. We are on a tight schedule and we need this app to be done very soon. |
@ivpusic I have the same problem. What additional information can I give you? |
@ivpusic I have tracked the problem down, photos are being resized but just to the wrong dimensions. Its caused by false calculations in the compression library. Its fixed in the fork https://github.com/aftabsikander/Compressor and a pull request has been made already zetbaitsu/Compressor#82. For people with the same problem, you could temporary use my fork of react-native-image-crop-picker https://github.com/ChrisLahaye/react-native-image-crop-picker. |
@andrewfluck Can you please check above PR and if it is fine, can you please merge it with the library. |
It is not working for me: {
includeBase64: true,
cropping: false,
// width: 640,
// height: 640,
multiple: true,
compressImageMaxWidth: 1200,
compressImageMaxHeight: 1200,
compressImageQuality: 0.8,
mediaType: 'photo',
} |
Still experiencing similar issue as well, that PR request seems to have been ignored. Project might be abandoned? if anyone is looking for a mickey mouse solution: |
I've created a PR, which I think may relate to this issue. Feel free to check it out and leave feedback 👍 |
Version
Tell us which versions you are using:
Platform
Tell us to which platform this issue is related
Expected behaviour
When selecting multiple images, they should follow the
compressImageMaxWidth
compressImageMaxHeight
rules.Actual behaviour
When selecting multiple images, they should follow the
compressImageMaxWidth
compressImageMaxHeight
but don't and instead end up uploading them to original size which for a startup, is bad.Steps to reproduce
The text was updated successfully, but these errors were encountered: