j2k 1.0.0 copy "j2k: ^1.0.0" to clipboard
j2k: ^1.0.0 copied to clipboard

Pure Dart JPEG 2000 codec: decodes JP2 and J2K files to 8- or 16-bit pixels with alpha, encodes pixel buffers and PGM/PPM, and runs on the VM, dart2js and dart2wasm.

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate j2k

Use it

The package has the following executables:

$ jp2dec
$ jp2enc

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add j2k

With Flutter:

 $ flutter pub add j2k

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  j2k: ^1.0.0

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

Import it

Now in your Dart code, you can use:

import 'package:j2k/j2k.dart';
1
likes
160
points
559
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Pure Dart JPEG 2000 codec: decodes JP2 and J2K files to 8- or 16-bit pixels with alpha, encodes pixel buffers and PGM/PPM, and runs on the VM, dart2js and dart2wasm.

Repository (GitHub)
View/report issues

Topics

#jpeg2000 #jp2 #image #codec #decoder

License

MIT (license)

Dependencies

meta, web

More

Packages that depend on j2k