# image_save **Repository Path**: xiafengjue/image_save ## Basic Information - **Project Name**: image_save - **Description**: Fork From:https://github.com/Samoy/image_save。 解决版本兼容性问题 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-11-01 - **Last Updated**: 2022-11-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # image_save [![version](https://img.shields.io/pub/v/image_save)](https://pub.dartlang.org/packages/image_save) ![platform](https://img.shields.io/badge/platform-Android%7CiOS-green) [![starts](https://img.shields.io/github/stars/samoy/image_save?style=social)](https://github.com/Samoy/image_save) Save image to album, support Android and iOS. ## Permission * ### Android Add the following statement in `AndroidManifest.xml`: ``` ``` * ### iOS Add the following statement in `Info.plist` ``` NSPhotoLibraryUsageDescription Add the description of the permission you need here. ``` ## Usage See [Example](https://github.com/Samoy/image_save/tree/master/example) ``` // Save to album. bool success = await ImageSave.saveImage(data, "demo.gif", albumName: "demo"); // Save to sandbox. // Notice: Image saved in this way will be deleted when the application is uninstalled. bool success = await ImageSave.saveImageToSandbox(data, "demo.gif"); // Get images from Sandbox. List imageDatas = await ImageSave.getImagesFromSandbox(); ```