image_filter_plus 0.0.1 copy "image_filter_plus: ^0.0.1" to clipboard
image_filter_plus: ^0.0.1 copied to clipboard

A simple image filters package for making image filters easily.

Image Filter Plus #

A simple flutter package to apply filters on images while editing images in flutter app.

Features #

  • Get predefined filter preset through ImageFilterPlus.getFilters().
  • Apply selected filter and convert it to Uint8List ImageFilterPlus.applyFilterAndConvertToUint8List().
  • Create you own custom filters through FIlterPreset().

Installation #

To get started, add the following dependency to your pubspec.yaml:

dependencies:
  image_filter_plus: ^1.0.0

Run dart pub get or flutter pub get to install the package.

Usage #

Get Predefined Image Filters #

import 'package:image_filter_plus/image_filter_plus.dart';

final filters = ImageFilterPlus.getFilters();

Apply Selected filter and convert to Uint8List #

import 'package:image_filter_plus/image_filter_plus.dart';

final filteredImage =
        await ImageFilterPlus.applyFilterAndConvertToUint8List(uint8ListImage: uint8ListImage, filter: selectedFilter);

Create your own FilterPreset #

import 'package:image_filter_plus/image_filter_plus.dart';

final customFilterPreset = FilterPreset(name: 'Custom', filterMatrix: [
    1.0,0.0,0.0,0.0,0.0,
    0.0,1.0,0.0,0.0,0.0,
    0.0,0.0,1.0,0.0,0.0,
    0.0,0.0,0.0,1.0,0.0,
  ]);

Create your own Custom Filters List #

import 'package:image_filter_plus/image_filter_plus.dart';

final customFilter = [
      FilterPreset(name: 'Clarendon', filterMatrix: FilterMatrix.clarendon),
      FilterPreset(name: 'Chrome', filterMatrix: FilterMatrix.chrome),
      FilterPreset(name: 'Fade', filterMatrix: FilterMatrix.fade),
      FilterPreset(name: 'Instant', filterMatrix: FilterMatrix.instant),
      FilterPreset(name: 'Custom', filterMatrix: 
      [1.0,0.0,0.0,0.0,0.0,
       0.0,1.0,0.0,0.0,0.0,
       0.0,0.0,1.0,0.0,0.0,
       0.0,0.0,0.0,1.0,0.0])
  ];

License #

This project is licensed under the MIT License - see the LICENSE file for details.

1
likes
140
points
14
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A simple image filters package for making image filters easily.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on image_filter_plus