{"id":15485642,"url":"https://github.com/rodydavis/image_resizer","last_synced_at":"2025-04-22T16:43:26.884Z","repository":{"id":56832967,"uuid":"240606642","full_name":"rodydavis/image_resizer","owner":"rodydavis","description":"Flutter/Dart Image Resize and Generator","archived":false,"fork":false,"pushed_at":"2021-09-27T18:14:52.000Z","size":2699,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T17:30:39.772Z","etag":null,"topics":["dart","flutter","image-processing","resize-images"],"latest_commit_sha":null,"homepage":"https://rodydavis.github.io/image_resizer/","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rodydavis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-14T22:06:53.000Z","updated_at":"2023-03-12T09:35:49.000Z","dependencies_parsed_at":"2022-09-08T01:41:25.161Z","dependency_job_id":null,"html_url":"https://github.com/rodydavis/image_resizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Fimage_resizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Fimage_resizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Fimage_resizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Fimage_resizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodydavis","download_url":"https://codeload.github.com/rodydavis/image_resizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250279558,"owners_count":21404408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","flutter","image-processing","resize-images"],"created_at":"2024-10-02T06:02:13.546Z","updated_at":"2025-04-22T16:43:26.863Z","avatar_url":"https://github.com/rodydavis.png","language":"Dart","funding_links":["https://www.buymeacoffee.com/rodydavis","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=WSH3GVC49GNNJ"],"categories":[],"sub_categories":[],"readme":"[![Buy Me A Coffee](https://img.shields.io/badge/Donate-Buy%20Me%20A%20Coffee-yellow.svg)](https://www.buymeacoffee.com/rodydavis)\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=WSH3GVC49GNNJ)\n[![Pub](https://img.shields.io/pub/v/image_resizer.svg?style=popout)](https://pub.dartlang.org/packages/image_resizer)\n\n# image_resizer\n\nDart image resizer library for flutter. \n\nIt can write to the correct folder locations, create an archive and work across web and io.\n\nOnline Demo: https://rodydavis.github.io/image_resizer/\n\n#### Included Folders:\n\n- IosIconsFolder\n- WebIconsFolder\n- MacOSIconsFolder\n- AndroidIconsFolder\n\nThis package is also meant to resize images at runtime too, or used for CLI purposes.\n\n## Getting Started\n\n```dart\nawait _generateIcons('iOS Icons', IosIconsFolder());\nawait _generateIcons('Web Icons', WebIconsFolder());\nawait _generateIcons('MacOS Icons', MacOSIconsFolder());\nawait _generateIcons('Android Icons', AndroidIconsFolder());\n\nFuture _generateIcons(String key, ImageFolder folder) async {\n    final _image = image.decodePng(_imageData);\n    final _gen = IconGenerator();\n    final _archive =\n        await _gen.generateIcons(_image, folder, writeToDiskIO: false);\n    if (mounted)\n        setState(() {\n        _files[key] = _archive;\n        });\n}\n\nFuture _archive() async {\n    final _gen = IconGenerator();\n    List\u003cFileData\u003e _images = [];\n    for (var key in _files.keys) {\n        final _folder = _files[key];\n        _images.addAll(_folder.toList());\n    }\n    final _data = _gen.generateArchive(_images);\n    await saveFile('images.zip', binaryData: _data);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodydavis%2Fimage_resizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodydavis%2Fimage_resizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodydavis%2Fimage_resizer/lists"}