https://github.com/prongbang/flutter_resizer_image
Flutter Resizer Image using Rust library for fast image resizing.
https://github.com/prongbang/flutter_resizer_image
fast-resize-image flutter-resize-image resize-image
Last synced: 6 months ago
JSON representation
Flutter Resizer Image using Rust library for fast image resizing.
- Host: GitHub
- URL: https://github.com/prongbang/flutter_resizer_image
- Owner: prongbang
- License: mit
- Created: 2023-04-16T11:38:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-18T16:16:59.000Z (over 1 year ago)
- Last Synced: 2025-04-03T15:18:06.497Z (6 months ago)
- Topics: fast-resize-image, flutter-resize-image, resize-image
- Language: Dart
- Homepage: https://pub.dev/packages/flutter_resizer_image
- Size: 77.2 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# flutter_resizer_image
Flutter Resizer Image using Rust library for [fast image resizing](https://github.com/cykooz/fast_image_resize).
## Usage
- pubspec.yml
```yaml
dependencies:
flutter_resizer_image: ^1.0.0
```or
```yaml
dependencies:
flutter_resizer_image:
git: https://github.com/prongbang/flutter_resizer_image
```- Initial
```dart
import 'package:flutter_resizer_image/flutter_resizer_image.dart';void main() async {
await FlutterResizerImage.init();
runApp(const MyApp());
}
```- New Instance
```dart
final resizerImage = FlutterResizerImage.instance();
```- Resize with Percent
```dart
String image = "iVBORw0KGgoA....AAANS=";
final image = await resizerImage.resizerWithPercent(image: image, percent: 50);
```- Resize with Width x Height
```dart
String image = "iVBORw0KGgoA....AAANS=";
final image = await resizerImage.resizer(image: image, width: 100, height: 100);
```