Comments (9)
@kamranbekirovyz Can you provide more details?
What kind of use cases do you envision, like storing images taken with a camera?
from gal.
There are low details on the issue because I was in a hurry 🙂
For example, screenshot package when takes a screenshot, the resulting image is not a File
with path but byte data (Uint8List
), so, you can not export it with gal
: you need to save it with locally before. Is it more clear?
from gal.
Let me know if you need help in implementing this feature in future.
BTW, I'm working on an article that will promote gal
as a preferred option for saving media files to the gallery app. I'll send you the article link when ready.
from gal.
@kamranbekirovyz Wow! That is great news. I appreciate it.
This is not finalized yet, but I may release a major update as a pre-release version.
The changes are as follows
- remove
hasAccess
andrequestAccess
- add
toAlbum
option for saving media to app album
This will be released as a pre-release version, especially since the removal of the permission handle function is controversial.
from gal.
Good Luck & keep in touch.
from gal.
@kamranbekirovyz After a bit of thought, I decided to work on implementing the ability to save media in a Uint8List
. Instead of using a temporary folder, I will pass Uint8List
directly to the native code to save it.
It is probably possible.
from gal.
Released🔥 Thank you for your request @kamranbekirovyz .
from gal.
@kamranbekirovyz Thank you for your contribution🤟. Please wait as I investigate.
from gal.
@kamranbekirovyz Thank you very much. I understand. If there is a lot of demand for it, maybe it should be included in the gal. However, if it can be solved with a few lines of code, it might be best to not include that functionality to keep the package minimalistic and provide documentation instead.
By the way, as you can see in the example, getting temporary folders can be accomplished with Directory.systemTemp
without using path_provider
.
from gal.
Related Issues (20)
- Expansion of supported version range of macOS HOT 1
- Unsupported file formats Error for existed files HOT 2
- Add support for Linux desktop platform HOT 13
- Windows platform cannot compile HOT 6
- Open Gallery to album HOT 3
- Allow building macOS apps targeting 10.14 or 10.15 macOS version HOT 3
- Many of my android users report me this error - An unexpected error has occurred HOT 18
- Can't compile for windows in lower than C++ 20 HOT 5
- Android: Failed to build unique file HOT 10
- Can "Gal.putImage" return the path of the saved image, instead of void?
- Adding a name parameter in putImageBytes HOT 1
- 2.3.0 not compatible with gal_linux HOT 1
- Next Breaking Change Candidates
- Macos App is crashing when saving image/video from url/asset path HOT 1
- Warning: The plugin gal requires Android SDK version 34. HOT 3
- Retrieve saved image path after saving to Gallery HOT 2
- An unexpected error has occurred while saving the webp format. HOT 2
- Compliance with Apple's Privacy Manifests HOT 1
- How to Save to album?? HOT 1
- Gal.open() on Samsung device HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gal.