📜  根据纵横比调整图像抖动 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:14.438000             🧑  作者: Mango

代码示例1
//import 'package:flutter_native_image/flutter_native_image.dart';

ImageProperties properties = await FlutterNativeImage.getImageProperties(file.path);
File compressedFile = await FlutterNativeImage.compressImage(file.path, quality: 80, 
    targetWidth: 600, 
    targetHeight: (properties.height * 600 / properties.width).round());