Skip to content

dangple-kr/flutter-image-conversion

 
 

Repository files navigation

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);
}

About

A package that converts the image format of the iPhone to the common JPEG format.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 54.2%
  • Swift 16.9%
  • Kotlin 14.5%
  • Ruby 14.2%
  • Objective-C 0.2%