Giter VIP home page Giter VIP logo

cordova-plugin-photos's People

Contributors

domax avatar loshonja avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

cordova-plugin-photos's Issues

Get access to URI ?

Hi,
Thanks for this plugin, that's exactly what i was looking for !
I've a question about pictures URI: it's very efficient to have a way to create a thumbnail for performance, but it's not really efficient to create a blob for an existing picture (it takes a lot of memory and after a while the app just crash). I there a way to access to picture URI so that i could just use the URI to display the picture inside a ?

Ask for contributing

This is not a report issues.
Hello developpers of cordova-plugin-photos.

I am Jérémy im developper for canal+ in France.
I have forked your project for fix differents bugs and remove differents callbacks unused.
If possible i want contribute in your project library with your rules for sure.

Contact me [email protected]

Good day !

Get native paths of my images

Is this possible with this plugin @domax ? I'm not quite shure as i didn't find anything like this...

I'm currently looking for a cordova plugin that lets me read all pictures from a certain gallery on your phone and returns native file urls - so i can share and delete these files from inside my app.

My background: i'm working on a photo-app for Android and iOS that lets you take pictures and places them in specific folders in your gallery. The user has an archive view from inside the app where he should be able to share and delete taken pictures - this only works when i have the native file paths.

I didn't find a cordova photo library plugin that has this feature, the popular "cordova-plugin-photo-library" f.e. isn't able to do so.
Also, hacks like making a tmp copy of the desired image is not an option for me.

Compilation error on Android

I tried to compile on Androd but it shows me this error:

Error: /Users/niconaso/develop/workspace/project-3-mobile/platforms/android/gradlew: Command failed with exit code 1 Error output:
/Users/niconaso/develop/workspace/project-3-mobile/platforms/android/src/com/domax/cordova/Photos.java:194: error: try-with-resources is not supported in -source 1.6
try (final Cursor cursor = query(
^
(use -source 7 or higher to enable try-with-resources)
/Users/niconaso/develop/workspace/project-3-mobile/platforms/android/src/com/domax/cordova/Photos.java:354: error: diamond operator is not supported in -source 1.6
final List result = new ArrayList<>();
^
(use -source 7 or higher to enable diamond operator)
2 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Limit on Get photo assets

When fecthing all photos, max 393 photos is returned. There are 500+ photos in a roll. I tried increase the interval and lower the limit but still no help.

Any ideas?

Add getting image as file URL

There is quite typical case to have an ability of getting access to image as file - it is convenient feature b/c of caching.

image() return base64 or dataURI

Hi, I'm using image() function to get panorama photo urls and want to display them in photoviewer. But I only get blob urls which can't be displayed in photoviewer. Are there any ways that I can get base64 or datauri from image()?

I tried eg.4 with File plugin, but the image is too large that I get memory problem.

Currently I'm using FileReader() to read the blob url as base64 then display it. But it's both time and memory consuming.

Anyway, thanks for this great plugin!

Phonegap Build error with Android

Hallo,

I'm using Phonegap Build and have an error with Android. iOS works well.
BUILD FAILED
Total time: 4.264 secs
Error: /gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/src/com/domax/cordova/Photos.java:203: error: try-with-resources is not supported in -source 1.6
try (final Cursor cursor = query(
^
(use -source 7 or higher to enable try-with-resources)
/src/com/domax/cordova/Photos.java:367: error: diamond operator is not supported in -source 1.6
final List result = new ArrayList<>();
^
(use -source 7 or higher to enable diamond operator)
2 errors

Does anyone know how to provide Java Version 1.7 in this case?

Thanks

Display ArrayBuffer in canvas looks scrambled

When trying to display the ArrayBuffer inside a canvas I get a scrambled looking image, I might be missing something but it seems that JPEG files are not supported? Or am I missing something...

@ViewChild('canvas') canvasRef: ElementRef;

...

if (typeof Photos !== "undefined") {

  Photos.photos(
    function (photos) {

        console.log("Grabbing: " + photos[0].id);

        Photos.thumbnail(photos[0].id,

          function (data) {

            var canvas = self.canvasRef.nativeElement;
            var ctx = canvas.getContext('2d');

            var imgData = ctx.createImageData(120, 120);
            imgData.data.set(new Uint8Array(data));

            ctx.putImageData(imgData, 0, 0);

          }, function (error) { });
          
    }, function (error) { }

  );

}

Impossible to get the image

Hello everyone, this code

Photos.image(photo.ID,
    function(data) {
       console.log(data)
    },
    function(error) {
        console.error("Error: " + error);
    });

with the proper photo.id return by this code

Photos.photos( 
    function(photos) {
        console.log(photos);
    },
    function(error) {
        console.error("Error: " + error);
    });

does not works, i've this error Photo ID is undefined

Wrong orientation in Android

Hi, it seems as with Android the exif orientation tag is not recognized and some images have wrong orientation. In addition when saving images as blob exif data will not be kept.
Any idea to solve this issue?

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.