React-native-image-picker: How to resize or scale before converting to base64

Created on 15 Jun 2017  路  3Comments  路  Source: react-native-image-picker/react-native-image-picker

Description

Whenever I capture an image or choose from gallery, I want to resize it before converting to base64 uri and then get the base 64 uri of the resized image.

stale

Most helpful comment

@yasserzubair check out maxWidth and maxHeight: https://github.com/react-community/react-native-image-picker#options

All 3 comments

@yasserzubair check out maxWidth and maxHeight: https://github.com/react-community/react-native-image-picker#options

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.

@yasserzubair As per your comment, I have checked https://github.com/react-community/react-native-image-picker#options document.

But I can't found maxWidth, maxHeight option,
Can you please let me know If I set maxWidth:500 then image filter with size <= 500 (does not display image more then 500 px width.) or when I select Image then the image will convert width 500px.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

stefank-kolosek picture stefank-kolosek  路  4Comments

kayosouza picture kayosouza  路  4Comments

chai86 picture chai86  路  3Comments

dlochynski picture dlochynski  路  4Comments

bearwmceo picture bearwmceo  路  4Comments