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