nexxa / cordova-base64-to-gallery Goto Github PK
View Code? Open in Web Editor NEW:warning: this project is not longer maintained - Cordova plugin to save base64 data as a png image into the device
License: MIT License
:warning: this project is not longer maintained - Cordova plugin to save base64 data as a png image into the device
License: MIT License
I'm using Cordova 7.0.1 (ios patform 4.4.0). After update to iOS 11 I've a crash everytime I call base64ToGallery.
Any Ideas?
Thanks
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
I'm getting "Image Saved to Gallery" as res, only on iOS. On android works fine and gives me back the path.
Is it a bug or am i missing something? Here is my code (i get imageData from cameraPreview plugin):
this.base64ToGallery.base64ToGallery(imageData[0]).then((res) => { console.log('Saved image to gallery ', res) }, err => console.log('Error saving image to gallery ', err) );
An example :-)
This message appears and the app crashes.
I'm using cordova 5
My code is:
cordova.base64ToGallery(
canvas.toDataURL().replace('data:image/png;base64,', ''),
'img_',
function(msg){
console.log(msg);
},
function(err){
console.log(err);
}
);
ios : Error saving Image to Gallery, check
Hi,
I want to save photo on iOS gallery. I have success callback message "Image Saved to Gallery" but i don't there is nothing in the picture gallery
Undefined symbols for architecture i386:
"_CACurrentMediaTime", referenced from:
___42-[Base64ToGallery saveImageDataToLibrary:]_block_invoke in Base64ToGallery.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
After updated to 4.1.1, I found this error. Hope someone could look into this, thank you.
Change the repository name and the cordova plugin id in order to be more consistent with the cordova naming convention.
This needs a new major version and a note in the README file, so people will be aware of the change.
throws : error while saving on samsung galaxy s6 devices (android version 6.0.1)
however works on ios platforms as well as tested on galaxy s4 and works fine
any idea?
Thx
Remove useless log messages (success, device version etc...) from classes for each platform.
Hi,
I am getting error while saving image
while trying to save image, my code is as follows:
if (this.base64Image !== null) { this.base64ToGallery.base64ToGallery(this.base64Image).then( res => this.toast.show('P -> Saved to gallery: ' + res, '5000', 'center').subscribe(), err => this.toast.show('P -> Error saving to gallery: ' + err , '7000', 'center').subscribe() ); }
I am passing base64 as:
this.base64Image = 'data:image/png;base64,' + imageData;
where imageData is base64 string.
If i pass "imageData" only I get below error:
data.replace is not a function
Any idea why?
Thanks.
When I was invoking Base64ToGallery.base64ToGallery(...) function as described on official document: http://ionicframework.com/docs/v2/native/base64-to%20gallery/ ,
There is an error thrown:
The log:
Feb 5 19:33:55 xxxx-MAC-2 xxxxx[17446]: Error saving image to gallery TypeError: undefined is not an object (evaluating 's[t].apply')
My testing data is hard coded a dataUrl string.
My running environment is:
cordova platform ios 4.0.0
ionic 2.1.17
on a simulator of iPhone6.0 with iOS 10.2
Anyone has had this problem?
I'm getting the error: Error while saving image
on android, but on iOS it works fine. Is there anything I am missing?
Just thinking that this will be better to give the user a choice depending on media type and best fit for minimal data transfer in mobile use.
Hi,
In the fork I developed with a fork of yours (https://github.com/agomezmoron/cordova-save-image-gallery) it's supported.
Thanks
#6
Hello,
thanks for your great plugin. Is there a way to not trigger the Media-Scanner after creating the image.
In my App i move the File in a special Folder, but in the Android-Galery the Folder "Pictures" shows on Image (it shows grey because it is not there anymore)
Would be great if you could implement a option to not trigger the Media-Scanner.
Thanks
Bastian
Any chance this could return the url of the saved file to the success callback? That would be really handy.
Installed platforms:
android 4.1.1
ios 4.1.1Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 1.3.1
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.0.0-beta.20
ios-deploy version: 1.9.0
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v4.6.0
Xcode version: Xcode 8.0 Build version 8A218a
The path that is show in the callback function
../Library/NoCloud/S408920411140.png
cordova-base64-to-gallery 4.1.1 "base64ToGallery"
Played around with the CSP meta-tag, but it doesn't fix and change anything. Not sure where to go from here, please help.
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.