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

Adding images into statements? #11

Open
bkchoix opened this issue Oct 13, 2016 · 1 comment
Open

Adding images into statements? #11

bkchoix opened this issue Oct 13, 2016 · 1 comment

Comments

@bkchoix
Copy link

bkchoix commented Oct 13, 2016

Is it possible to add images into statements instead of texts?
I tried editing the statements in the statements.xml like the following

<statement id="1"><img src="images/1.png"/></statement>

but obviously something didn't go well and I only see a blank statement box.
If there is a way, I would greatly appreciate any kind of help.

@Esselle
Copy link

Esselle commented Jun 9, 2017

XML files don't handle images without a workaround into Base64 - you could try that but I'm not sure what the results would be. Should be plenty of "how to" pages online for inserting images into XML with Base64. It will add quite a bit of bulk to the file, which may, or may not, be problematic. Your code would work if the file were HTML, but even then you'd need to specify style elements in CSS etc. I imagine you'd need to mess around with the other parts of the code to make the images render legibly once sorted into the primary sort and again on the q-sort matrix - perhaps some kind of mouse hover-over to reveal the full image?
Would be interested if you've found a workaround or if this works?

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

No branches or pull requests

2 participants