domax / cordova-plugin-photos Goto Github PK
View Code? Open in Web Editor NEWThis Cordova/Phonegap plugin provides access to photo library on device.
License: MIT License
This Cordova/Phonegap plugin provides access to photo library on device.
License: MIT License
A request to Photos.thumbnail()
returns "Cannot get a thumbnail of photo
" for some image IDs.
iOS version should take into account imageOrientation property for correct image orientation.
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?
Does anyone know how to provide Java Version 1.7 in this case?
Thanks
There is quite typical case to have an ability of getting access to image as file - it is convenient feature b/c of caching.
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
Initially I tested my cordova app with the photos plugin with an Android 9 and everything worked perfectly.
I encountered this problem exclusively with android 10
photos()
call should support some kind of pagination.
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.
Does not open the gallery after upgrading to API 29
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?
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 !
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!
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.
Compilation failed; see the compiler error output for details.
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) { }
);
}
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 ?
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.