const webp = require('webp-converter');
const fs = require('fs').promises;
async function getWebpBase64(path) {
const data = await fs.readFile(path);
const buf = Buffer.from(data);
const dataBase64 = Buffer.from(buf).toString('base64');
// base64str of image
// base64str image type jpg,png ...
//option: options and quality,it should be given between 0 to 100
return webp.str2webpstr(dataBase64, 'jpg', '-q 65');
}
async function main() {
const path = [[PYT]];
const result = await getWebpBase64(path);
console.log(result);
[[ITOG]] = result;
}
await main();
I’m tempted to say it’s not possible in the free plugin to remove the credit link, so that you get the premium plugin, see www.ultimatelysocial.com/usm-premium/, which has tons of other fancy features too. And you support our business.
But something in me tells me I have to be honest, so: please go to question 1 in the free plugin, on the level of the email icon, on the right hand side, there you’ll find the link you can click on, this will remove the credit link.
transscreen.ru/wp-content/plugins/w3-total-cache
В ITOG получаю: 2022-12-03T16:00:42.220Z . А как это перевести в миллисекунды?