vscode-paste-image icon indicating copy to clipboard operation
vscode-paste-image copied to clipboard

Could you add one new config item for image format, png or jpeg?

Open justfouw opened this issue 3 years ago • 1 comments

great work in advance.

Possiblely, png is a little bigger for image. Should we use JPEG formation?

I read the code, in src/extention.ts:: line 206~210.

....
// image file name
let imageFileName = "";
 if (!selectText) {
       imageFileName = this.namePrefixConfig + moment().format(this.defaultNameConfig) + this.nameSuffixConfig + ".png";
  } else {
       imageFileName = this.namePrefixConfig + selectText + this.nameSuffixConfig + ".png";
   }
....

Here, png format is specified manually. Can we use JPEG?

I dont know how to build this code to one installable plugin.

justfouw avatar Nov 13 '20 03:11 justfouw

Big +1 on this request from me

RobertAlbus avatar Jan 11 '24 17:01 RobertAlbus