FLUTTER ECOSYSTEM

aloisdeniel/image_native_resizer

Um plugin do Flutter que redimensiona imagens da API nativa, mantendo atributos EXIF importantes.

Capa do projeto image_native_resizer
Stars
11
Forks
2
Último push (UTC)
23 de jun. de 2020
Status do projeto
Ativo
Aloïs Deniel GitHub avatar
GITHUB User

Aloïs Deniel ↗

Flutter Freelance

FreelanceRennes, FranceSite oficial ↗
LinguagensObjective-CJavaDartRuby

Tópicos técnicos

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 2 itens
  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher 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.