gif2rgb565 0.0.1+2 copy "gif2rgb565: ^0.0.1+2" to clipboard
gif2rgb565: ^0.0.1+2 copied to clipboard

A Flutter package to convert GIFs to RGB565 format.

gif2rgb565 #

Convert GIF (including animated), PNG, JPG, BMP images to RGB565 arrays and C++ code for embedded displays, all in Dart/Flutter. No server required!

Features #

  • Extracts frames from animated GIFs
  • Resizes images
  • Converts to RGB565 format
  • Generates C++ code for all frames
  • Works locally on any Dart/Flutter platform

Usage #

import 'package:gif2rgb565/gif2rgb565_converter.dart';

final frames = Gif2Rgb565Converter.extractFrames(
  imageBytes: imageBytes,
  targetWidth: 160,
  targetHeight: 160,
);
final cppCode = Gif2Rgb565Converter.generateCppCode(frames);

See example/main.dart for a full example.

License #

MIT

0
likes
130
points
1
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter package to convert GIFs to RGB565 format.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

file_picker, flutter, http, image

More

Packages that depend on gif2rgb565