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

preview: support previewing EPS files #327

Open
tiborsimko opened this issue May 24, 2023 · 3 comments
Open

preview: support previewing EPS files #327

tiborsimko opened this issue May 24, 2023 · 3 comments

Comments

@tiborsimko
Copy link
Member

Physics workflows' output plots are often produced in the EPS (=Encapsulated PostScript) format.

These files cannot be currently previewed when browsing the Workspace tab files.

Let's investigate whether we could add support for previewing EPS files too.

@tiborsimko
Copy link
Member Author

(Note: as an alternative option to finding a nice frontend-side image viewer solution, one could think of creating flexible backend-side image manipulation first before the source file is passed to the previewer.. E.g. using the ImageMagick helper tool would convert EPS files to PNG on the backend side and the frontend would visualise PNG. Such as approach is more complex, but might have an advantage of being possibly used in the future for other specialised file formats.)

@giuseppe-steduto
Copy link
Member

giuseppe-steduto commented May 24, 2023

1️⃣ Converting the EPS files on the server side is very likely the best idea. For this there are plenty of options available (ImageMagick, Ghostscript, cairo2svg, ...) and this option has indeed the advantage Tibor mentioned.
2️⃣ There don't appear to be many EPS rendering client-side libraries (or even more general PostScript visualization tools). Rather than well-maintained libraries, most of them seem to be didactic projects or exercises (such as this or this).
3️⃣ Instead of a client-side EPS file renderer, one could think about using a client-side converter from EPS to, say, SVG. The situation is not much better though: I managed to find only one, old library (nevermind, it was yet another server-side library)

(Note: I'm deliberately ignoring external APIs like CloudConvert, Cloudmersive and such)

@audrium
Copy link
Member

audrium commented May 24, 2023

I fully agree with Giuseppe. I haven't found any client-side libraries for previewing EPS files, so we should take the server-side approach.

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

3 participants