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

Uploading multiple photos disregards maxWidth/Height props #532

Open
andrewfluck opened this issue Dec 3, 2017 · 8 comments
Open

Uploading multiple photos disregards maxWidth/Height props #532

andrewfluck opened this issue Dec 3, 2017 · 8 comments

Comments

@andrewfluck
Copy link

Version

Tell us which versions you are using:

  • react-native-image-crop-picker v0.18.1
  • react-native v0.50.3

Platform

Tell us to which platform this issue is related

  • Android 8.0

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

  1. Select multiple photos in your file browser window
  2. Hit Ok
  3. That's it, make sure to have the aforementioned props to see the bug in action.
@ivpusic
Copy link
Owner

ivpusic commented Dec 4, 2017

do you have some time to investigate this?

@andrewfluck
Copy link
Author

andrewfluck commented Dec 4, 2017

No unfortunately, I don't. We are on a tight schedule and we need this app to be done very soon.

@ChrisLahaye
Copy link

@ivpusic I have the same problem. What additional information can I give you?

@ChrisLahaye
Copy link

ChrisLahaye commented Dec 6, 2017

@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.

@ShreyashPromact
Copy link

@andrewfluck Can you please check above PR and if it is fine, can you please merge it with the library.
Normally user uses the latest OS. Now if it is not working on such device then there is no benefit to use this library.

@angeloocana
Copy link

angeloocana commented Feb 13, 2018

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',

    }

@DISKONEKTeD
Copy link

DISKONEKTeD commented Oct 13, 2018

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:

#604 (comment)

@bonesyblue
Copy link
Contributor

I've created a PR, which I think may relate to this issue. Feel free to check it out and leave feedback 👍

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

7 participants