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

Add ability to embed resources into .ptex files #652

Open
RobotRoss opened this issue Dec 17, 2023 · 1 comment
Open

Add ability to embed resources into .ptex files #652

RobotRoss opened this issue Dec 17, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@RobotRoss
Copy link

Feature/enhancement description:
For those of us who use Material Maker across devices and operating systems, the current method of linking external resources (e.g. images) in .ptex files is to create a static link to the file. However, this approach breaks down very quickly if you need to then transfer the material into another Material Maker instance, e.g. on another computer or another operating system on the same computer.

Instead, it might be useful to give the user the option to embed all resources into the .ptex file itself, removing the need to link the files within the host operating system and increasing the portability of ptex files.

The tradeoff, is of course that the size of the ptex files themselves will inflate proportionately to the number (and size) of the embedded resources; however, to many users, this is a worthwile tradeoff.

@RobotRoss RobotRoss added the enhancement New feature or request label Dec 17, 2023
@RodZill4
Copy link
Owner

If you put your images and .ptex file in the same directory, you just have to move all of them (the .ptex contains a relative path in that case).
Putting images inside the .ptex file is not an option (because I don't want muti-megabytes non-procedural materials on the website, for obvious reasons).
Maybe a tool to archive/unarchive materials?

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

No branches or pull requests

2 participants