Comments (3)
Hi @iqfareez . Thanks for your contribution🤝
First, there are some limitations depending on the platform.
-
iOS/macOS does not allow us to get the direct file path of a media file, so you have to get the local URL e.g.
file:///var/mobile/Media/DCIM/118APPLE/IMG_8371.MOV
. In addition, this is not possible with NSPhotoLibraryAddUsageDescription, which would require additional permissions. -
file paths and URLs cannot be used permanently as they can be changed by the system or the user.
-
changes to media files should always be made via the platform's API and should not be changed or deleted directly using the path.
I would like my app to have function to open image directly quickly after saving.
Does this mean opening the Gallery app? If not, the easiest way seems to be to display the images using the path to the temporary directory used to store the files.
final imagePath = '${Directory.systemTemp.path}/image.jpg';
await Dio().download('$url',imagePath);
await Gal.putImage(imagePath);
// Open imagePath //
If you tell me more about your Use Case, I may be able to suggest a better way.
from gal.
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now.
If you find this problem please file a new issue with the same description, Thanks for your contribution.
from gal.
Hi, I do have a usecase. I am building a share to instagram story functionality and on Android it's limited, it requires passing a file from MediaStore instead of the app's cache.
I am using Gal for a different functionality, so it would be great to be able to use the same one here
from gal.
Related Issues (20)
- 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
- 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 2
- Issue with gal Plugin Integration with Flutter Work Manager in IOS HOT 4
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.