soft_converter 0.1.0-dev
soft_converter: ^0.1.0-dev copied to clipboard
Convert some videos and images to some formats
example/soft_converter_example.dart
// ignore_for_file: avoid_print
import 'package:soft_converter/soft_converter.dart';
Future<void> main() async {
final imageConverter = SoftImageConverter();
try {
final file = await imageConverter.toWEBP(
input: 'assets/space.jpg',
output: 'assets/space.webp',
);
print('Image file: ${file.path}');
} catch (e) {
rethrow;
}
}