I would like to resize the 100*300 image to 200*200 while maintaining the aspect ratio, and re-create the image with the excess painted out.

Asked 2 years ago, Updated 2 years ago, 131 views

It's just like the title.To be exact, I would like to pick up a local image file from the react-native app launched on an Android device and create an image that resizes the image to a specified size while maintaining the aspect ratio.At that time, I would like to paint out the resized margins with black etc. and make sure to create an image with the specified size.
I'm looking for a library of java with these features.

The flow is
react-native → 画像 image pick → ピック resize the picked image → リサ upload the resized image to the server

The library of の has a target, and I am looking for に.
I'm looking forward to hearing from you if it's a good idea to search with these words.

java react-native

2022-09-29 21:35

1 Answers

Tried creating a React Component that resizes images in a nice way

I think the software introduced above will satisfy your needs.
The source code is also published on GitHub, so it will help you create a library.


2022-09-29 21:35

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.