easy_lut 0.1.0 copy "easy_lut: ^0.1.0" to clipboard
easy_lut: ^0.1.0 copied to clipboard

outdated

Dart package to easily apply LUT for images

example/easy_lut_example.dart

import 'dart:io';

import 'package:easy_lut/easy_lut.dart';

void main() async {
  final imageData = await File('card_1.png').readAsBytes();

  final lutPaths = [
    'neutral-lut.png',
    'InverseLUT',
    '1DummyLUT',
    'LBK-K-Tone_33.cube',
  ];

  final easyLUT = EasyLUT();

  for (var path in lutPaths) {
    final lut = await easyLUT.parseLUTWithPath(path);

    final newImageData = easyLUT.applyLUT(lut, imageData);

    if (newImageData != null) {
      final fileName = lut.title
          .replaceAll(' ', '_')
          .replaceAll('"', '')
          .replaceAll('(', '')
          .replaceAll(')', '')
          .replaceAll('-', '_');

      await File('$fileName.png')
          .writeAsBytes(newImageData);
    }
  }
}
2
likes
0
points
16
downloads

Publisher

unverified uploader

Weekly Downloads

Dart package to easily apply LUT for images

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

image

More

Packages that depend on easy_lut