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

ClipboardItems and multiple mimetypes ? #3023

Open
lpatiny opened this issue Apr 16, 2024 · 1 comment
Open

ClipboardItems and multiple mimetypes ? #3023

lpatiny opened this issue Apr 16, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@lpatiny
Copy link
Member

lpatiny commented Apr 16, 2024

When copying an image to clipboard are we able to copy directly the png AND the svg ?

It seems that when pasting in Adobe Illustrator the SVG would be extracted and there is an issue so that it can also be done using InkScape.

Hopefully some other applications would take the SVG if they know what to do with it.

@hamed-musallam Is it possible to test that ?

@lpatiny lpatiny added the enhancement New feature or request label Apr 16, 2024
@hamed-musallam
Copy link
Member

hamed-musallam commented Apr 17, 2024

@lpatiny

In theory, testing this seems possible, and we could follow these steps to accomplish it:

  1. Set up an account at Adobe Illustrator (which is not for free) or another online free software.
  2. Use Playwright to create a test script with two pages.
  3. Simulate copying and pasting the SVG from the NMRium page to the SVG render software page.
  4. Capture snapshots of the SVG renders.
  5. Compare the snapshots to ensure accurate SVG rendering.

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
Development

No branches or pull requests

2 participants