nmrium icon indicating copy to clipboard operation
nmrium copied to clipboard

ClipboardItems and multiple mimetypes ?

Open lpatiny opened this issue 1 year ago • 1 comments

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 avatar Apr 16 '24 15:04 lpatiny

@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.

hamed-musallam avatar Apr 17 '24 07:04 hamed-musallam