resize_media 1.0.0 resize_media: ^1.0.0 copied to clipboard
Resize media files
resize_media #
Resize media to a given size
Features #
- Pictures resize (currently only iOS)
To do #
- Pictures resize Andorid side
- Video resize
Install #
In the pubspec.yaml
of your flutter project, add the following dependency:
dependencies:
resize_media: <latest_version>
In your library add the following import:
import 'package:resize_media/resize_media.dart';
Getting started #
Example:
ResizeMedia().image(
path: fileImage.path,
imageQuality: 1,
maxWidth: 1920,
maxHeight: 1920,
);
Parameters #
Leave empty imageQuality
,maxWidth
,maxHeight
to get the original image