FLUTTER ECOSYSTEM

aloisdeniel/image_native_resizer

一個 Flutter 插件,透過原生 API 調整影像大小,同時保留重要的 EXIF 屬性。

image_native_resizer 專案封面
Stars
11
Forks
2
最近推送(UTC)
2020年6月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.