multimedia 1.0.2
multimedia: ^1.0.2 copied to clipboard
Multimedia libraries for pure dart with native bindings
Usage #
void main() async {
initMultimedia();
File f = File("in.png").absolute;
// Get multiple outputs with only one actual read to in.png
await MediaMagic.findOptimal(
f,
[
// Get the highest quality 336 thumbnail with a max size of 10kb
ImageGoal(File("thumb.webp"), 336, 1024 * 10),
// Also get the highest quality 4096 image with a max size of 2mb
ImageGoal(File("out.webp"), 4096, 1024 * 1024 * 2),
],
maxAttempts: 5);
}