Image -> Clipboard [New Updates]

yes hi i'm on here again for the 23286852nd time

anyways, is it possible to put a costume onto the clipboard?
i know the opposite is possible already.

I don't think so...
I tried, and got this:

a Costume(Untitled)

try converting the costume to a PNG image

It WAS a png image.

"Costume" object is not known to the outside world. So there is no reason to copy it to the clipboard.
You can get the costume's canvas and copy it as png. Something like (Chrome)

costume.contents.toBlob( 
         blob => navigator.clipboard.write( [new ClipboardItem({'image/png': blob })] )
)

uhh
that code doesnt work

Does it error? How are you using the code?

With that scratchblocks thing from earlier. Is it because of cross-origin?

???

Your in

You asked for the reason why it errored
i was using a scratchblocks pic

You didn't say, so I got confused.

I found the issue-- the image is an svg! what now?! nevermind, resolved. cross-origin is still occuring, though. 2nd edit: turns out messing with the image in the editor breaks it away from its origin. any way to automate that? 3rd edit: Duplicating it via the costumes manager works too!

You are talking about
scratchblocks script pic
from project Username=dardoro&ProjectName=scratchblocks
I've tested with costume created in the built-in editor
scratchblocks script pic (1)

ooh yay thanks
also i forgot to say thanks for the scratchblocks in snap thingy so uhh thanks for that too

wait-- oh no is it because i'm in the snap 7 beta
aaaaaaa
image
Edit: THERES NO WAY FOR ME TO BACKPORT THE PROJECT AAA
Edit 2: nvm it's not that

scratchblocks script pic (2)
was updated too to be compatible with scratchblocks script pic (3).

OHHH THATS WHY

hello this is here so the message will send

image
it works