Canvas2ImagePlugin icon indicating copy to clipboard operation
Canvas2ImagePlugin copied to clipboard

Add config for choosing save to lib or file

Open devgeeks opened this issue 10 years ago • 12 comments

Perhaps a configuration option to choose to either save the image to the gallery/camera roll (as it does currently) or to save it to the app's filesystem and return the file URL (allowing the dev to then upload to a server via FileTransfer, open in another app, etc).

devgeeks avatar Feb 21 '14 10:02 devgeeks

Ok, that would be really great and solve my issue. Is it hard to accomplish?

mahnuh avatar Feb 22 '14 08:02 mahnuh

I just need this feat! Do you mind implementing it?

aledelgo avatar Apr 16 '14 11:04 aledelgo

I don't have heaps of free time right at the moment. I'd certainly like to add this, but it's still just wish list at this point.

devgeeks avatar Apr 16 '14 21:04 devgeeks

I can understand. I'll make the possible to implement it for android. eventually i'll request a pull. Hope someoneother have interest implementing it on iOS / WP

aledelgo avatar Apr 23 '14 15:04 aledelgo

:+1: +1 for this feature. Choosing the destination folder when saving (as alternative to save to camera roll) is a great enhancement that allows to chain other actions with the file

fidoboy avatar May 12 '14 11:05 fidoboy

Awesome plugin... pretty good in android... But,while I came to iOS, I didn't able to upload the file,after the big process of saving the canvas as image into my iPhone album... Can anyone help me to go further... I've been stucked for a week here..... Thanks in advance...

swtjeeva avatar Jul 14 '14 07:07 swtjeeva

Yeah, I have grand plans to update the iOS side to also save the file to (at the very least) the tmp/documents folder instead of JUST to the camera roll / photo library.

The original purpose of the plugin was just the photo library and it is a happy happenstance that on Android that means you have an actual accessible file location. In iOS it's not. It's at best an asset URI – https://developer.apple.com/library/ios/documentation/AssetsLibrary/Reference/ALAssetsLibrary_Class/Reference/Reference.html

devgeeks avatar Jul 18 '14 22:07 devgeeks

+1 would love to see imageUri for fileUpload on iOS too. Thank you

ms88privat avatar Oct 03 '14 23:10 ms88privat

Hoping to find some time to test the pull req that has this

devgeeks avatar Oct 04 '14 00:10 devgeeks

The WP8 also returns the path, but strangely it returns "Image saved :" followed with the path. That seems pretty useless since if you're in the success callback you already know the image has been saved and if you're using the argument thre are chances you're looking for the file path and not a message. The android version just returns the path in the success callback and it is great as it is. It would be great if all platforms could return the path in the same format! About adding config to save to lib or file, is it really useful? The way I use this plgin is I save to lib and then if I need the file somewhere else, I move it after.

nicolasgrolleau avatar Jan 14 '15 08:01 nicolasgrolleau

I definitely could use the configurable location. The images that I am using are uploaded to our server via an API and clutter up the device. I don't want my users to have to manage the pictures on their device.

markarupert avatar Sep 08 '15 16:09 markarupert

@devgeeks @aledelgo I'm wondering, did it ever get possible to get file uri and not save image to gallery for Android? looking for that feature, thanks alot!

matte5031 avatar Nov 17 '16 12:11 matte5031