Skip to content
pubscout

heic_to_png_jpg

0.1.2, released 6 months ago by utanium.org

Convert HEIC images to JPG, PNG, or WebP on mobile, web, and desktop.

WASM-ready
$ flutter pub add heic_to_png_jpg
Source repository

What it does

A Flutter package to convert HEIC and HEIF images into JPG, PNG, or WebP formats across mobile, web, and desktop platforms. It provides resizing, batch conversion, file path APIs, and image information reading without blocking the UI thread.

AI-written summary of version 0.1.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to handle user-uploaded HEIC photos on web or cross-platform apps.
  • You want to convert HEIC images to standard formats like JPG or PNG.
  • You need to check image types or read dimensions without full decoding.

Skip it when

  • You only need standard image picking without conversion functionality.
  • You need robust WebP encoding directly on mobile without falling back to PNG.

Strengths

  • Supports multiple platforms including mobile, web, and desktop.
  • Provides helper utilities such as batch conversion, magic-byte checks, and dimension reading.
  • Runs processing in an isolate to keep the UI thread free.

Weaknesses

  • WebP output on mobile falls back to PNG because the Dart image package lacks a WebP encoder.
  • Desktop and WebP on mobile rely on the Dart image package fallback which may have limited HEIC support.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
5

Requires Flutter 3.24.0 or later. iOS deployment target must be 12.0 or later.

import 'package:heic_to_png_jpg/heic_to_png_jpg.dart';

final Uint8List heicData = ...;
final jpg = await HeicConverter.convertToJPG(heicData: heicData, quality: 85);

Alternatives

Packages that do the same job and could replace heic_to_png_jpg.

  • image_picker

    If you primarily need to pick images from the device gallery or camera rather than explicitly converting HEIC data formats.

Works with

Packages commonly used together with heic_to_png_jpg: ones it builds on, ones built on it, and its own family.