flutter_image_conversion 1.0.0 copy "flutter_image_conversion: ^1.0.0" to clipboard
flutter_image_conversion: ^1.0.0 copied to clipboard

A lightweight Flutter plugin that enables conversion of HEIC images to JPEG or PNG format directly on iOS devices. Ideal for apps targeting image uploads, social sharing, or cross-platform compatibility.

flutter_image_conversion #

A Flutter plugin that converts HEIC images to JPEG (or optionally PNG) on iOS using native Swift code. Useful for preparing images for web uploads, social sharing, or ensuring cross-platform compatibility.

Features #

  • ✅ Convert .heic files to .jpeg
  • ✅ Resize images before conversion (default max width: 1080)
  • ✅ Set compression quality (default: 0.7)
  • ❌ HEIC is not supported on Android — Android will return File and log the attempt

Getting Started #

Add the package to your pubspec.yaml:

dependencies:
  flutter_image_conversion:
    git:
      url: https://github.com/cyberprophet/flutter-image-conversion.git
import 'package:flutter_image_conversion/flutter_image_conversion.dart';

// maxWidth to 1080px
// quality to 70%
Future<void> convertImage(File heicImage) async {
  final File file =
    await FlutterImageConversion.convertHeicToJpeg(heicImage);
}
0
likes
150
points
288
downloads

Publisher

unverified uploader

Weekly Downloads

A lightweight Flutter plugin that enables conversion of HEIC images to JPEG or PNG format directly on iOS devices. Ideal for apps targeting image uploads, social sharing, or cross-platform compatibility.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_image_conversion