icc_parser

Last updated:

0 purchases

icc_parser Image
icc_parser Images
Add to Cart

Description:

icc parser

Pure dart implementation of (a subset of) ICC 4.4 color profiles and transformations.
Features #

Parse ICC profiles (version 4.4 and lower)
Create color transformations from ICC profiles (not all tags are supported yet)

Getting started #
For publicly available color profiles, see ICC's website.
Usage #
final transformations = inputFiles.mapIndexed((index, e) {
final bytes = ByteData.view(File(e).readAsBytesSync().buffer);
final stream =
DataStream(data: bytes, offset: 0, length: bytes.lengthInBytes);
final profile = ColorProfile.fromBytes(stream);
return ColorProfileTransform.create(
profile: profile,
isInput: index == 0,
intent: ColorProfileRenderingIntent.perceptual,
interpolation: ColorProfileInterpolation.tetrahedral,
lutType: ColorProfileTransformLutType.color,
useD2BTags: true,
);
}).toList();
final cmm = ColorProfileCmm();

final finalTransformations = cmm.buildTransformations(transformations);

final color = cmm.apply(finalTransformations, Float64List.fromList([0, 0, 0, 0]));
copied to clipboard
Additional information #
This package is still under development and not all tags are supported yet.
If you need a specific tag, please open an issue or a pull request.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.