png_chunk_text
Dart port of png_chunk_text.
Create or parse a PNG tEXt chunk for storing uncompressed text data in PNG images. Can be used in combination with png_chunks_extract and png_chunks_encode for adding and reading custom metadata in PNG images.
Features
Create or parse a PNG tEXt chunk for storing uncompressed text data in PNG images.
Getting started
In the pubspec.yaml of your flutter project, add the following dependency:
dependencies:
...
png_chunk_text: ^1.0.0
Import it:
import 'package:png_chunk_text/png_chunk_text.dart' as text;
Usage
Please see the usage in test/png_chunk_text_test.dart
.
import 'package:png_chunk_text/png_chunk_text.dart' as text;
final map = text.encode('Author', 'Lorem Ipsum');
final result = text.decode(textChunkData);