mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
feat: Add support for WebP image format in clipboard and thumbnail handling
This commit is contained in:
@@ -5,3 +5,7 @@ import 'package:image/image.dart';
|
||||
Future<Uint8List> jpgToPng(Uint8List data) async {
|
||||
return encodePng(decodeJpg(data)!);
|
||||
}
|
||||
|
||||
Future<Uint8List> webpToPng(Uint8List data) async {
|
||||
return encodePng(decodeWebP(data)!);
|
||||
}
|
||||
|
||||
@@ -3,3 +3,7 @@ import 'dart:typed_data';
|
||||
Future<Uint8List> jpgToPng(Uint8List data) async {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
Future<Uint8List> webpToPng(Uint8List data) async {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user