Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image() return base64 or dataURI #12

Open
victoria168 opened this issue Nov 29, 2017 · 4 comments
Open

image() return base64 or dataURI #12

victoria168 opened this issue Nov 29, 2017 · 4 comments

Comments

@victoria168
Copy link

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!

@domax
Copy link
Owner

domax commented Nov 30, 2017

Base64 is the most memory-consuming case. I'd not recommend to use it for large images.
But what a problem do you have with File plugin and writing data wrapped by Blob? Please provide your code snippet and platform you use (including version and device).

@victoria168
Copy link
Author

I copied from your example 4 under image(), and get the error when executing Photo.image():
Connection to assetsd was interrupted or assetsd died
Then the app crashes.
I'm running in iphone6 ios10.3.3

@domax
Copy link
Owner

domax commented Dec 4, 2017

@victoria168 : I'm trying to reproduce this bug. I just made a panorama photo and successfully fetched it. Do you have any specifics in your image? Which size it has (both - bytes and dimensions)?

@victoria168
Copy link
Author

The pano is: 13632 * 2936 px.
I have around 8 panos loaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants