FLUTTER ECOSYSTEM

aloisdeniel/image_native_resizer

重要な EXIF 属性を保持しながら、ネイティブ API から画像のサイズを変更する Flutter プラグイン。

image_native_resizer のプロジェクト画像
Stars
11
Forks
2
最終プッシュ(UTC)
2020/06/23
プロジェクト状態
公開中
Aloïs Deniel GitHub avatar
GITHUB User

Aloïs Deniel ↗

Flutter Freelance

FreelanceRennes, France公式サイト ↗
言語Objective-CJavaDartRuby

技術トピック

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 2 件
  • flutter{"sdk":"flutter"}
  • flutter_test開発用{"sdk":"flutter"}

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

image_native_resizer

pub package

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.

Quickstart
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 plugin. Serveral internal files from the plugin are used to implement the resizing logic, this plugin is just exposing them through a platform channel.