Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aloisdeniel/image_native_resizer
A Flutter plugin that resizes images from native API, while keeping important EXIF attributes.
https://github.com/aloisdeniel/image_native_resizer
flutter image plugin resize
Last synced: 4 months ago
JSON representation
A Flutter plugin that resizes images from native API, while keeping important EXIF attributes.
- Host: GitHub
- URL: https://github.com/aloisdeniel/image_native_resizer
- Owner: aloisdeniel
- License: mit
- Created: 2020-04-29T09:04:12.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-23T13:49:41.000Z (over 4 years ago)
- Last Synced: 2024-05-01T13:52:10.837Z (10 months ago)
- Topics: flutter, image, plugin, resize
- Language: Objective-C
- Homepage:
- Size: 81.1 KB
- Stars: 11
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# image_native_resizer
[![pub package](https://img.shields.io/pub/v/image_native_resizer.svg)](https://pub.dartlang.org/packages/image_native_resizer)
A Flutter plugin that resizes images from native API, while keeping important EXIF attributes.
## Installation
First, add `image_native_resizer` as a [dependency in your pubspec.yaml file](https://flutter.io/platform-plugins/).
### Quickstart
``` dart
import 'package:image_native_resizer/image_native_resizer.dart';final localImagePath = /*** ***/;
final resizedPath = await ImageNativeResizer.resize(
imagePath: localImagePath,
maxWidth: 512,
maxHeight: 512,
quality: 50,
);
```## Inspired by `image_picker`
This plugin is almost identitical to the official [image_picker](https://github.com/flutter/plugins/tree/master/packages/image_picker/image_picker) plugin. Serveral internal files from the plugin are used to implement the resizing logic, this plugin is just exposing them through a platform channel.