Coder Social home page Coder Social logo

nexxa / cordova-base64-to-gallery Goto Github PK

View Code? Open in Web Editor NEW
23.0 23.0 103.0 63 KB

:warning: this project is not longer maintained - Cordova plugin to save base64 data as a png image into the device

License: MIT License

Java 25.46% Objective-C 35.11% C# 9.85% JavaScript 29.58%

cordova-base64-to-gallery's People

Contributors

bastian-meier avatar bmdelacruz avatar stefanomagrassi avatar telember avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cordova-base64-to-gallery's Issues

change repo name and plugin id

Change the repository name and the cordova plugin id in order to be more consistent with the cordova naming convention.

  • new repo name -> cordova-base64-to-gallery
  • new plugin id -> cordova-base64-to-gallery

This needs a new major version and a note in the README file, so people will be aware of the change.

Plugin not working on s6

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

TypeError: undefined is not an object (evaluating 's[t].apply'

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?

version 4.1.1 error - undefined object

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.

Error while saving image

I'm getting the error: Error while saving image on android, but on iOS it works fine. Is there anything I am missing?

Problem iOS gallery

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

Error while saving image / data.replace is not a function

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.

Ios return path

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) );

Could you add an Option for not using the Media-Scanner

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

Saved file URI

Any chance this could return the url of the saved file to the success callback? That would be really handy.

No error but image is not saved in ios10 phone gallery

Installed platforms:
android 4.1.1
ios 4.1.1

Cordova 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.

Permissions

ios : Error saving Image to Gallery, check

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.