quiply / saveimage Goto Github PK
View Code? Open in Web Editor NEWCordova plugin allowing you to save an image file to the iOS Camera Roll / Photo Library or Android Gallery
License: MIT License
Cordova plugin allowing you to save an image file to the iOS Camera Roll / Photo Library or Android Gallery
License: MIT License
Hi,
To start with, this is awesome plugin. Thanks a lot.
What I want to say is, images are stored in gallery in my android in default pictures folder. Is it possible that I can create a folder with the name of my app in gallery and store images inside it ?
it's crashing app when saveImageToGallery
function called.
Hello,
is it possible to know the internal path of the saved image?
In Android it is passed as parameter in the successCallback but in IOS this param is valued as 'Image Saved' string
Please. can you help me?
What am I doing wrong?
Can we save a file located on a remote server using this plugin?
i'm using plugin cordova-plugin-save-image
What am I doing wrong?
Feature request rather than issue: it would be great to be able to save the base64 stream you get from a camera call back straight to the gallery, rather than needing a path to a saved file. Would this be easy to add? I might have a shot at it myself but have limited time.
Hi,
i would like to know if it's possible to save image(.jpg) and video (.mov) to camera roll gallery with specific name ?
thank you
Since Android 11 storage updates, it is not possible to use Environment.getExternalStoragePublicDirectory
to return a path to a publicly accessible folder, which is how the plugin is using now.
Therefore, it is critical that we need a new way to save files to a shared storage.
Consider using: Storage Access Framework or MediaStore API
Hi,
I'm trying it like this.
function saveImg() {
var nativePathToJpegImage = 'images/001.jpg'
cordova.plugins.imagesaver.saveImageToGallery(nativePathToJpegImage, onSaveImageSuccess, onSaveImageError);
}
function onSaveImageSuccess() {
console.log('success');
}
function onSaveImageError(error) {
console.log('error: ' + error);
}
$$('.save-img').on('click', function (e) {
saveImg();
});
But image is not being saved anywhere. Would appreciate any help.
SaveImage.js In ther _getLocalImagePathWithoutPrefix function, localImagePath.startsWith
This is working on my Andoid5.0 device but not on 6.0. function callback to error(). I think its permission issue on android 6. how to fix?
If you download a file, you can choose (ao) to save it in LocalFileSystem.TEMPORARY or LocalFileSystem.PERSISTENT
When using cordova.plugins.imagesaver.saveImageToGallery, does the file need to be persistent before saving it, or can it be temporary ? Iow, is the file copied somewhere or is it just linked from its original place into a gallery/camera roll storage ?
So far, TEMPORARY seems to work. But I don't know if my device/app has cleared its caches sofar.
Can you provide an example how to use it on Phonegap Build? I mean what is the file I must include in config.xml and also can I do it like:
var nativePathToJpegImage = 'ww/1.png'
Then use onclick function like:
<img alt="Wallpaper" src="www/1.png" onclick="window.cordova.plugins.ImageSaver.saveImageToGallery();"/>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.