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

load a png file or jpg file #22

Open
guironne opened this issue Apr 23, 2024 · 1 comment
Open

load a png file or jpg file #22

guironne opened this issue Apr 23, 2024 · 1 comment

Comments

@guironne
Copy link

Hello,
I would like to load png file with :
\includegraphics[width=15cm]{file.png}

in request :
filecontents[]: what encoding is supported ?

could you provide an example with a image file?

thank you

@davidcarlisle
Copy link
Owner

I don't support uploading images to the test server at for example

https://davidcarlisle.github.io/latexcgi/run

However any server that makes use of this script can use available images in documents that are uploaded for example

https://davidcarlisle.github.io/latexcgi/test2#scottish-play

shows an image of Macbeth that is on the server and

https://www.learnlatex.org/en/lesson-07

shows use of example-image graphics that are available via texlive.

In the http post submission perl code I don't support any binary files or unpack any encoded files, the attachments are just stored as-is so basically just text/plain uploads.

It's not an unreasonable request but this is a free service offered with no user login, and I have to balance the risks.

The http post handler of course is open source and available from here so on your own server you are free to use a modified version that handles the content encoding of the multipart/form-data fields and unpacks binary files appropriately but I don't want to handle that at the open server running at texlive.net, sorry.

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