Copy image in polacode
Kevinwuu opened this issue ยท 3 comments
When i need to make more than 1 screenshot, i think saving file for every picture it's kind of unnecessary.
If i can just copy and paste the image to others and make the next one immediately, it will be great. ๐
I used to use Pickpic to make screenshot and it can do the same thing as i said.
Looks like this repo hasn't been active for a while. I want this feature too so I'll be switching to https://marketplace.visualstudio.com/items?itemName=adpyke.codesnap
I agree with @Kevinwuu, I don't know how to compile and install changes on this extension, I would like to try if someone helps me.
Use:
const { copyImg } = require('img-clipboard');
copyImg(Buffer.from(imageData, 'base64'));
Example:
const writeSerializedBlobToFile = (serializeBlob, fileName) => {
const bytes = new Uint8Array(serializeBlob.split(','))
fs.writeFileSync(fileName, Buffer.from(bytes))
copyImg(Buffer.from(bytes)) // <HERE>
}
this functionality can be achieved, pls if anyone knows how to install these changes help me.
Looks like this repo hasn't been active for a while. I want this feature too so I'll be switching to https://marketplace.visualstudio.com/items?itemName=adpyke.codesnap
Thanks for the tip! https://github.com/kufii/CodeSnap