multimedia 1.0.0 copy "multimedia: ^1.0.0" to clipboard
multimedia: ^1.0.0 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);
}
0
likes
0
points
351
downloads

Publisher

verified publisherarcane.art

Weekly Downloads

Multimedia libraries for pure dart with native bindings

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

curse, image_magick_ffi, thumbhash, toxic, uuid

More

Packages that depend on multimedia