flutter_mozjpeg 0.0.3 copy "flutter_mozjpeg: ^0.0.3" to clipboard
flutter_mozjpeg: ^0.0.3 copied to clipboard

A Flutter wrapper for mozjpeg.

flutter_mozjpeg #

A Flutter wrapper for mozjpeg.

Getting Started #

iOS #

The pod mozjpeg must be redirected to my own fork just now. Add the following line to your ios/Podfile:

pod 'mozjpeg', :git => "https://github.com/espresso3389/mozjpeg.git"

Your Podfile may be like the following after adding the line:

...

target 'Runner' do
  use_frameworks!
  use_modular_headers!

  pod 'mozjpeg', :git => "https://github.com/espresso3389/mozjpeg.git"

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

...

Android #

Nothing to do.

Example #

import 'package:flutter_mozjpeg/flutter_mozjpeg.dart';

...

await FlutterMozjpeg.jpegCompressFileToFile(File('input.jpg'), File('output.jpg'));
0
likes
130
points
36
downloads

Publisher

verified publisherespresso3389.jp

Weekly Downloads

A Flutter wrapper for mozjpeg.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

ffi, flutter

More

Packages that depend on flutter_mozjpeg