Skip to content
pubscout

platform_image_converter

2.4.0, released 8 days ago by koji-1009.com

Cross‑platform image format conversion and resizing using native APIs

WASM-ready
$ flutter pub add platform_image_converter
Source repository

What it does

Converts images between JPEG, PNG, WebP, HEIC, AVIF and resizes them while preserving EXIF orientation. It uses platform‑native APIs via FFI/JNI for high performance.

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

Use it when

  • Need fast, native image conversion on multiple platforms
  • Require resizing with aspect‑ratio control
  • Need to handle HEIC/AVIF on supported OSes

Skip it when

  • Working in a pure Dart/Flutter web environment without native plugins
  • Need a lightweight dependency for simple image loading only

Strengths

  • High performance native implementation
  • Supports many formats and resizing modes
  • Handles EXIF orientation automatically

Weaknesses

  • Requires native setup (FFI/JNI)
  • Platform‑specific limitations (e.g., WebP output not on iOS)
  • Large binary size due to native code

Setup

Kind
FFI (native library)
Effort
Medium
Code generation
No
Direct dependencies
3

Add plugin to pubspec, run flutter pub get. No build_runner needed. On Android, ensure minSdk 7; on iOS, deployment target 14.0. No special permissions required.

import 'package:platform_image_converter/platform_image_converter.dart';

final jpegData = await ImageConverter.convert(
  inputData: heicImageData,
  format: OutputFormat.jpeg,
  quality: 90,
);

Alternatives

Packages that do the same job and could replace platform_image_converter.

Works with

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