Skip to main content

wic_decode 0.2.0 copy "wic_decode: ^0.2.0" to clipboard
wic_decode: ^0.2.0 copied to clipboard

PlatformWindows

A Flutter plugin for decoding images on Windows using Windows Imaging Component (WIC), including EXIF orientation.

wic_decode #

pub package

A Flutter plugin for decoding images on Windows using the Windows Imaging Component (WIC).

Features #

  • Decode an image file to raw RGBA pixels via decodeImageToRawPixelFile.
  • Read the decoded image's EXIF/WIC orientation (1–8, defaults to 1).
  • Decode the resulting raw pixel file into a dart:ui.Image with decodeRawPixelFileToUIImage.
  • Display an image with orientation applied using WicDecode.buildImageViewFromUIImage.

Usage #

import 'package:flutter/widgets.dart';
import 'package:wic_decode/wic_decode.dart';

final plugin = WicDecode();

final result = await plugin.decodeImageToRawPixelFile(
  srcImage: 'input.jpg',
  destFile: 'output.raw',
);

final image = await plugin.decodeRawPixelFileToUIImage(
  filePath: 'output.raw',
  width: result.width,
  height: result.height,
);

// Apply EXIF orientation when displaying:
WicDecode.buildImageViewFromUIImage(image, result.orientation);

result exposes:

  • result.width — output image width
  • result.height — output image height
  • result.orientation — EXIF orientation (1–8), defaults to 1

Platform support #

  • Windows only.
0
likes
160
points
260
downloads

Documentation

API reference

Publisher

verified publisherflutter-cavalry.com

Weekly Downloads

A Flutter plugin for decoding images on Windows using Windows Imaging Component (WIC), including EXIF orientation.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on wic_decode

Packages that implement wic_decode