libvips_ffi_core 0.1.0+8.16.0 copy "libvips_ffi_core: ^0.1.0+8.16.0" to clipboard
libvips_ffi_core: ^0.1.0+8.16.0 copied to clipboard

Pure Dart FFI bindings for libvips image processing library. No Flutter dependency.

libvips_ffi_core #

Pure Dart FFI bindings for libvips image processing library. No Flutter dependency.

Features #

  • Pure Dart implementation (no Flutter required)
  • Image loading/saving (JPEG, PNG, WebP, TIFF, etc.)
  • Image transformations (resize, rotate, crop, flip)
  • Image filters (blur, sharpen, invert)
  • Color space conversions
  • Uses VarArgs for variadic function calls (Dart 3.0+)

Requirements #

  • Dart SDK >= 3.5.0
  • libvips library installed on the system

Usage #

import 'dart:ffi';
import 'package:libvips_ffi_core/libvips_ffi_core.dart';

void main() {
  // Initialize with system library
  initVipsSystem();
  
  // Or initialize with a pre-loaded library
  // initVipsWithLibrary(DynamicLibrary.open('libvips.dylib'));
  
  // Load and process image with VipsPipeline (from libvips_ffi_api)
  final pipeline = VipsPipeline.fromFile('input.jpg');
  pipeline.resize(0.5);
  pipeline.toFile('output.jpg');
  pipeline.dispose();
  
  // Cleanup
  shutdownVips();
}
0
likes
120
points
--
downloads

Publisher

unverified uploader

Weekly Downloads

Pure Dart FFI bindings for libvips image processing library. No Flutter dependency.

Repository (GitHub)
View/report issues

Topics

#image #image-processing #ffi #libvips

Documentation

API reference

License

unknown (license)

Dependencies

ffi

More

Packages that depend on libvips_ffi_core