-
Notifications
You must be signed in to change notification settings - Fork 25
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
Generate image of the spectrum from outside component #1569
Comments
Could you please clarify how it should work at the point of view of the user ? When should this image be generated ? Should the user click somewhere outside NMRium and at that time the NMRium file and PNG are generated at this moment ? |
The user can click somewhere outside NMRium or trigger an event in the NMRium Wrapper to generate an image as a blob to save it somewhere else, maybe in a database or upload it as a file in another file server. I will ask Chandu to comment on this ticket |
can you comment on this and clarify the idea if I miss things |
Use case: ELNs and repositories would like to create a thumbnail or preview of the spectra for the user to quickly identify the spectra and not have to load the spectra every time. Trigger point: |
* feat: generate blob for the spectra from an outside component close #1569 * refactor: rename generateBlob function to 'getSpectraViewerAsBlob'
in addition to exporting spectra as SVG, jpeg we need a way to capture and save them directly to the external data service. This has to be done from where our component is imported. for example, in Chemotion ELN they need to be able to capture the Blob of the generated image and store it as a blob in the database or store the image in the file server and store its path in the database
The text was updated successfully, but these errors were encountered: