Jouhn code
Jouhn code

Reputation: 61

Is there a React Native framework for compressing image size?

I am newbie with react native, so i'm trying to create a React Native app which a lot of people may upload more than 5 photos so in few words "Database could get out of space quicker, photos are gonna last longer to upload on others user screen".

What is the most recommended way for resizing and compressing images on react native app?

Is Facebook Spectrum available for react native?

Upvotes: 0

Views: 2476

Answers (1)

Kabir
Kabir

Reputation: 862

Please refer this link : https://github.com/bamlab/react-native-image-resizer
A React Native module that can create scaled versions of local images (also supports the assets library on iOS).

It allows you to specify: Max dimensions (whilst preserving aspect ratio) and;
Output quality (for JPEG only)

OR

Refer this link : https://www.npmjs.com/package/react-native-compress-image


Is Facebook Spectrum available for react native?
Refer this link: https://www.facebook.com/fbOpenSource/posts/we-are-proud-to-launch-spectrum-a-cross-platform-image-transcoding-library-that-/1918840864831332/

Upvotes: 1

Related Questions