image_editor 0.1.6

image_editor #

CI

Support android ios, use the native way to flip, crop, rotate pictures.

The version of readme pub and github may be inconsistent, please refer to github.

Screenshot #

img

Usage #

pub package GitHub GitHub stars

Import

import 'package:image_editor/image_editor.dart';

Method list:

ImageEditor.editImage();
ImageEditor.editFileImage();
ImageEditor.editFileImageAndGetFile();
ImageEditor.editImageAndGetFile();

Example used alone

Example of extended_image

ImageEditor method params #

NameDescription
imagedart.typed_data.Uint8List
filedart.io.File
imageEditorOptionflutter_image_editor.ImageEditorOption

ImageEditorOption #

final editorOption = ImageEditorOption();
editorOption.addOption(FlipOption());
editorOption.addOption(ClipOption());
editorOption.addOption(RotateOption());

editorOption.outputFormat = OutputFormat.png(88);

Option #

Flip #

FlipOption(horizontal:true, vertical:false);

Clip #

ClipOption(x:0, y:0, width:1920, height:1920);

Rotate #

RotateOption(degree: 180);

OutputFormat #

var outputFormat = OutputFormat.png();
var outputFormat = OutputFormat.jpeg(95);

Common issue #

..../image_editor-0.1.4/ios/Classes/FlutterImageEditorPlugin.m:2:9: 'image_editor/image_editor-Swift.h' file not found

See #10

LICENSE #

MIT Style.

0.1.6 #

Fix:

  • error of editImageAndGetFile.

0.1.5 #

Fix:

  • Fix cachePath error.

0.1.4 #

Feature:

  • Round the trimming data to prevent errors caused by precision problems.
  • Use gcd to handle image on iOS.

Fix :

  • Problem with a rotation angle of 180 degrees on IOS.

0.1.3 #

Fix

  • Image orientation of camera on ios.

0.1.2 #

Fix

  • If the exif contains the orientation information, it will be automatically corrected.

Add

  • Support output format.

0.1.1 #

Optimized the process of processing code.

Reduce the number of encoding and decoding to improve efficiency.

0.1.0 #

First version.

  • [crop]
  • [rotate]
  • [flip]

example/README.md

flutter_image_editor_example #

Demonstrates how to use the flutter_image_editor plugin.

Getting Started #

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  image_editor: ^0.1.6

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:image_editor/image_editor.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
88
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
94
Learn more about scoring.

We analyzed this package on Feb 12, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.5
  • Flutter: 1.12.13+hotfix.7

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test