Allow using full resolution images

This commit is contained in:
Ole Eskild Steensen 2024-01-18 07:42:44 +01:00
parent 2c4610a4cb
commit cd1e0883aa
2 changed files with 3 additions and 3 deletions

View File

@ -432,6 +432,9 @@ module.exports = function (eleventyConfig) {
eleventyConfig.addTransform("picture", function (str) {
if(process.env.USE_FULL_RESOLUTION_IMAGES === "true"){
return str;
}
const parsed = parse(str);
for (const imageTag of parsed.querySelectorAll(".cm-s-obsidian img")) {
const src = imageTag.getAttribute("src");

View File

@ -1,7 +1,4 @@
require("dotenv").config();
const axios = require("axios");
const fs = require("fs");
const crypto = require("crypto");
const { globSync } = require("glob");
module.exports = async (data) => {