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

Relative path for images #73

Open
Patrockanite opened this issue Jul 22, 2021 · 1 comment
Open

Relative path for images #73

Patrockanite opened this issue Jul 22, 2021 · 1 comment

Comments

@Patrockanite
Copy link

Hi,
is there a possibility to insert images by setting a relative path?
I can only do this with absolute paths, which causes problems to go to another computer.
Thank you

@Cuperino
Copy link
Collaborator

This is a good question and something I was thinking of working this after figuring out how to make use of or create a portable document format that could self-contain images.

The limiting factor here is that because Imaginary Teleprompter is a web page, relative paths will always be relative to the path in the current page's URL, which would be teleprompter.html while prompting and editor.html (in the beta-v branch) or index.html (on all other branches) while editing.

To force a different working directory using Javascript is a bad idea because it would likely break inter-process-communication that exists between the editor and the in-line prompter, which are held together by an iFrame. The best solution, in my opinion, would be to use a self contained file format to store the images and copy them to a temporary directory for use inside the program while loading the document.

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