-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
photo in vcf-card #377
Comments
any updates on this? |
I have the same problem |
same |
i converted it to base64 and it worked, plus changed : into ; |
@blahblehblah In the source code? Or in the object you gave to the formatter? |
I gave it a url and handled the conversion of the url to base64 in my backend, however, we can simply inject a canvas incase of a url, load the image and use toDateURL() to get the base64 |
Or use a filereader perhaps, talking about client side solution for now |
Hi @blahblehblah Thank you! |
@blahblehblah could you share the code. I've been looking into this as well and can't make it work :/ I also tried as base64 and no dice :( |
For base64 encoded foto I have to set encryption and type parameter. Could you add them so we could use: ..... ...... Only working method for now is to use photo: 'ENCODING=b;TYPE=image/jpeg:' + contactImageBase64 and then replace generated PHOTO:ENCODING... with PHOTO;ENCODING... Thank you! |
BEGIN:VCARD I have converted a image into base64 but still I am not able view it into mobile contact details. Above mentioned code generated through VCard. Please help me to fix it. |
I've checked source code and only way I found to use base64 image and not changing the lib or final generated file would be photo: {
value: imgBase64, // only data, without data:image/[...];base64 part, use imgBase64.split(',').pop() to strip out
param: {
// @ts-ignore
type: 'JPEG;ENCODING=b'
}
} ts will complain for non declared type, so @ts-ignore used |
You have extra |
Not able to show photo or logo when passing the URL.
The text was updated successfully, but these errors were encountered: