[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-9401":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":16,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":22,"topics":23,"createdAt":10,"pushedAt":10,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":16,"starSnapshotCount":16,"syncStatus":37,"lastSyncTime":38,"discoverSource":39},9401,"image","brendan-duncan\u002Fimage","brendan-duncan","Dart Image Library for opening, manipulating, and saving various different image file formats.","",null,"Dart",1256,302,21,51,0,5,20.44,"MIT License",false,"main",true,[24,25,26,27,28,29,5,30,31,32,33],"dart","dart-library","dart-package","dart-web","dartlang","flutter","image-processing","jpeg","png","webp","2026-06-12 02:02:07","# Dart Image Library\n[![Dart CI](https:\u002F\u002Fgithub.com\u002Fbrendan-duncan\u002Fimage\u002Factions\u002Fworkflows\u002Fbuild.yaml\u002Fbadge.svg?branch=4.0)](https:\u002F\u002Fgithub.com\u002Fbrendan-duncan\u002Fimage\u002Factions\u002Fworkflows\u002Fbuild.yaml)\n[![pub package](https:\u002F\u002Fimg.shields.io\u002Fpub\u002Fv\u002Fimage.svg)](https:\u002F\u002Fpub.dev\u002Fpackages\u002Fimage)\n\n## Overview\n\nThe Dart Image Library provides the ability to load, save, and\n[manipulate](https:\u002F\u002Fgithub.com\u002Fbrendan-duncan\u002Fimage\u002Fblob\u002Fmain\u002Fdoc\u002Ffilters.md) images\nin a variety of image file [formats](https:\u002F\u002Fgithub.com\u002Fbrendan-duncan\u002Fimage\u002Fblob\u002Fmain\u002Fdoc\u002Fformats.md).\n\nThe library can be used with both dart:io and dart:html, for command-line, Flutter, and\nweb applications.\n\nNOTE: 4.0 is a major revision from the previous version of the library.\n\n## [Documentation](https:\u002F\u002Fgithub.com\u002Fbrendan-duncan\u002Fimage\u002Fblob\u002Fmain\u002Fdoc\u002FREADME.md)\n\n### [Supported Image Formats](https:\u002F\u002Fgithub.com\u002Fbrendan-duncan\u002Fimage\u002Fblob\u002Fmain\u002Fdoc\u002Fformats.md)\n\n**Read\u002FWrite**\n\n- JPG\n- PNG \u002F Animated PNG\n- GIF \u002F Animated GIF\n- BMP\n- TIFF\n- TGA\n- PVR\n- ICO\n- (Read) WebP \u002F Animated WebP, (Write) Lossless WebP\n\n**Read Only**\n\n- PSD\n- EXR\n- PNM (PBM, PGM, PPM)\n\n**Write Only**\n\n- CUR\n\n## Examples\n\nCreate an image, set pixel values, save it to a PNG.\n```dart\nimport 'dart:io';\nimport 'package:image\u002Fimage.dart' as img;\nvoid main() async {\n  \u002F\u002F Create a 256x256 8-bit (default) rgb (default) image.\n  final image = img.Image(width: 256, height: 256);\n  \u002F\u002F Iterate over its pixels\n  for (var pixel in image) {\n    \u002F\u002F Set the pixels red value to its x position value, creating a gradient.\n    pixel..r = pixel.x\n    \u002F\u002F Set the pixels green value to its y position value.\n    ..g = pixel.y;\n  }\n  \u002F\u002F Encode the resulting image to the PNG image format.\n  final png = img.encodePng(image);\n  \u002F\u002F Write the PNG formatted data to a file.\n  await File('image.png').writeAsBytes(png);\n}\n```\n\nTo asynchronously load an image file, resize it, and save it as a thumbnail: \n```dart\nimport 'package:image\u002Fimage.dart' as img;\n\nvoid main(List\u003CString> args) async {\n  final path = args.isNotEmpty ? args[0] : 'test.png';\n  final cmd = img.Command()\n    \u002F\u002F Decode the image file at the given path\n    ..decodeImageFile(path)\n    \u002F\u002F Resize the image to a width of 64 pixels and a height that maintains the aspect ratio of the original. \n    ..copyResize(width: 64)\n    \u002F\u002F Write the image to a PNG file (determined by the suffix of the file path). \n    ..writeToFile('thumbnail.png');\n  \u002F\u002F On platforms that support Isolates, execute the image commands asynchronously on an isolate thread.\n  \u002F\u002F Otherwise, the commands will be executed synchronously.\n  await cmd.executeThread();\n}\n```\n","Dart Image Library 是一个用于打开、处理和保存多种图像文件格式的 Dart 库。它支持读写 JPG、PNG（包括动画 PNG）、GIF（包括动画 GIF）、BMP、TIFF 等常见格式，并且可以处理 WebP 和 PSD 等特定格式。该库提供了丰富的图像处理功能，如调整大小、旋转、裁剪等，并且能够与 dart:io 和 dart:html 一起使用，适用于命令行工具、Flutter 应用程序以及 Web 开发。无论是需要在服务器端生成缩略图还是在客户端实现复杂的图像编辑功能，Dart Image Library 都能提供稳定的支持。",2,"2026-06-11 03:22:29","top_language"]