Skip to content

Commit

Permalink
Fix analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-duncan committed May 11, 2024
1 parent f12029a commit 776d04c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions test/filter/quantize_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ void main() {
final bytes = File('test/_data/png/buck_24.png').readAsBytesSync();

final i0 = decodePng(bytes)!;
final q0 = quantize(i0, numberOfColors: 32, method: QuantizeMethod.octree);
final q0 =
quantize(i0, numberOfColors: 32, method: QuantizeMethod.octree);
File('$testOutputPath/filter/quantize_octree.png')
..createSync(recursive: true)
..writeAsBytesSync(encodePng(q0));

final i0_ = decodePng(bytes)!;
final q0_ = quantize(i0_, numberOfColors: 32, method: QuantizeMethod.octree, dither: DitherKernel.floydSteinberg);
final q0_ = quantize(i0_,
numberOfColors: 32,
method: QuantizeMethod.octree,
dither: DitherKernel.floydSteinberg);
File('$testOutputPath/filter/quantize_octree_dither.png')
..createSync(recursive: true)
..writeAsBytesSync(encodePng(q0_));
Expand All @@ -28,7 +32,8 @@ void main() {
..writeAsBytesSync(encodePng(q1));

final i2 = decodePng(bytes)!;
final q2 = quantize(i2, numberOfColors: 32, dither: DitherKernel.floydSteinberg);
final q2 =
quantize(i2, numberOfColors: 32, dither: DitherKernel.floydSteinberg);
File('$testOutputPath/filter/quantize_neural_dither.png')
..createSync(recursive: true)
..writeAsBytesSync(encodePng(q2));
Expand Down

0 comments on commit 776d04c

Please sign in to comment.