From 18d030c5eb22fb08cc91c12d18867769fa845534 Mon Sep 17 00:00:00 2001 From: DMKAL <83312683+tirzah2@users.noreply.github.com> Date: Wed, 7 Aug 2024 13:28:43 -0800 Subject: [PATCH 01/40] Update module.json --- module.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module.json b/module.json index 29a6f6e..bffd45b 100644 --- a/module.json +++ b/module.json @@ -26,7 +26,7 @@ "media":[ { "type":"cover", - "url":"https://github.com/tirzah2/minipaint/blob/main/images/cover.png" + "url":"https://raw.githubusercontent.com/tirzah2/minipaint/main/images/cover.png" } ], "packs": [], From dd21d7ab47a60d166b28e5ef2ac13d669691acdd Mon Sep 17 00:00:00 2001 From: DMKAL <83312683+tirzah2@users.noreply.github.com> Date: Wed, 7 Aug 2024 23:59:24 +0100 Subject: [PATCH 02/40] Update module.json --- module.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module.json b/module.json index bffd45b..bffd197 100644 --- a/module.json +++ b/module.json @@ -2,10 +2,10 @@ "name": "minipaint", "title": "miniPaint", "description": "miniPaint is a full drawing tool to edit tile, tokens, items, generate art with AI, generate frames and tokens and so much more", - "version": "1.5", + "version": "1.6", "author": "DMKal", "minimumCoreVersion": "11", - "compatibleCoreVersion": "11", + "compatibleCoreVersion": "12", "scripts": [ "js/minipaint.js" ], @@ -35,5 +35,5 @@ "url": "https://github.com/tirzah2/minipaint", "readme": "https://github.com/tirzah2/minipaint/README.md", "manifest": "https://github.com/tirzah2/minipaint/releases/latest/download/module.json", - "download": "https://github.com/tirzah2/minipaint/releases/download/1.5/module.zip" + "download": "https://github.com/tirzah2/minipaint/releases/download/1.6/module.zip" } From 35d0e9d505f13d70661ed05cf0e8fac411c6966b Mon Sep 17 00:00:00 2001 From: DMKAL <83312683+tirzah2@users.noreply.github.com> Date: Wed, 7 Aug 2024 23:59:47 +0100 Subject: [PATCH 03/40] Update minipaint.js --- js/minipaint.js | 104 +++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 95 insertions(+), 9 deletions(-) diff --git a/js/minipaint.js b/js/minipaint.js index 0c620a7..76835a5 100644 --- a/js/minipaint.js +++ b/js/minipaint.js @@ -350,8 +350,48 @@ async function replaceTile() { } const tile = selectedTiles[0]; - const originalPath = tile.document.texture.src; - const directoryPath = originalPath.substring(0, originalPath.lastIndexOf("/")); + let originalPath = tile.document.texture.src; + let directoryPath; + + // Determine the directory path + if (originalPath) { + directoryPath = originalPath.substring(0, originalPath.lastIndexOf("/")); + + // Check if the directory is writable (user data) or not (core data) + try { + await FilePicker.browse("data", directoryPath); + } catch (error) { + console.warn("Directory is not writable, switching to miniMapNewTiles."); + directoryPath = "miniMapNewTiles"; + + // Check if the fallback directory exists, and create it if it doesn't + try { + await FilePicker.browse("data", directoryPath); + } catch (error) { + if (error.message.includes("does not exist")) { + await FilePicker.createDirectory("data", directoryPath); + } else { + ui.notifications.error("Error accessing or creating the fallback directory."); + return; + } + } + } + } else { + // If originalPath is null, set the directory to 'miniMapNewTiles' in the root + directoryPath = "miniMapNewTiles"; + + // Check if the directory exists, and create it if it doesn't + try { + await FilePicker.browse("data", directoryPath); + } catch (error) { + if (error.message.includes("does not exist")) { + await FilePicker.createDirectory("data", directoryPath); + } else { + ui.notifications.error("Error accessing or creating the directory."); + return; + } + } + } const iframe = document.getElementById('myFrame'); const minipaintCanvas = iframe.contentWindow.document.querySelector('#canvas_minipaint'); @@ -374,14 +414,14 @@ async function replaceTile() { // Create a File object from the Blob with the random filename const file = new File([blob], randomFilename, { type: blob.type }); - // Upload the image file to the same directory as the original tile image + // Upload the image file to the determined directory const response = await FilePicker.upload("data", directoryPath, file, {}); if (response.path) { // Update the tile with the new image source await tile.document.update({ "texture.src": response.path }); - //ui.notifications.info("Tile image replaced successfully."); + ui.notifications.info("Tile image replaced successfully."); } else { ui.notifications.error("Failed to upload the modified image."); } @@ -435,8 +475,48 @@ async function replaceToken() { } const token = selectedTokens[0]; - const originalPath = token.document.texture.src; - const directoryPath = originalPath.substring(0, originalPath.lastIndexOf("/")); + let originalPath = token.document.texture.src; + let directoryPath; + + // Determine the directory path + if (originalPath) { + directoryPath = originalPath.substring(0, originalPath.lastIndexOf("/")); + + // Check if the directory is writable (user data) or not (core data) + try { + await FilePicker.browse("data", directoryPath); + } catch (error) { + console.warn("Directory is not writable, switching to miniMapNewTiles."); + directoryPath = "miniMapNewTiles"; + + // Check if the fallback directory exists, and create it if it doesn't + try { + await FilePicker.browse("data", directoryPath); + } catch (error) { + if (error.message.includes("does not exist")) { + await FilePicker.createDirectory("data", directoryPath); + } else { + ui.notifications.error("Error accessing or creating the fallback directory."); + return; + } + } + } + } else { + // If originalPath is null, set the directory to 'miniMapNewTiles' in the root + directoryPath = "miniMapNewTiles"; + + // Check if the directory exists, and create it if it doesn't + try { + await FilePicker.browse("data", directoryPath); + } catch (error) { + if (error.message.includes("does not exist")) { + await FilePicker.createDirectory("data", directoryPath); + } else { + ui.notifications.error("Error accessing or creating the directory."); + return; + } + } + } const iframe = document.getElementById('myFrame'); const minipaintCanvas = iframe.contentWindow.document.querySelector('#canvas_minipaint'); @@ -459,20 +539,26 @@ async function replaceToken() { // Create a File object from the Blob with the random filename const file = new File([blob], randomFilename, { type: blob.type }); - // Upload the image file to the same directory as the original token image + // Upload the image file to the determined directory const response = await FilePicker.upload("data", directoryPath, file, {}); if (response.path) { // Update the token with the new image source await token.document.update({ "texture.src": response.path }); - // ui.notifications.info("Token image replaced successfully."); + ui.notifications.info("Token image replaced successfully."); } else { ui.notifications.error("Failed to upload the modified image."); } }, "image/png"); } +// Function to generate a random filename +function generateRandomFilename() { + return Math.random().toString(36).substring(2, 12); +} + + async function showCanvasInImagePopout() { const iframe = document.getElementById('myFrame'); @@ -1274,4 +1360,4 @@ async function applyInpaintRing() { } }, "image/png"); // Ensure the image is in PNG format -} \ No newline at end of file +} From 7ebb0f25889ef882b3cc5e3f34cb7ab14d21e377 Mon Sep 17 00:00:00 2001 From: DMKAL <83312683+tirzah2@users.noreply.github.com> Date: Thu, 8 Aug 2024 00:23:27 +0100 Subject: [PATCH 04/40] Update minipaint.js --- js/minipaint.js | 57 ++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 52 insertions(+), 5 deletions(-) diff --git a/js/minipaint.js b/js/minipaint.js index 76835a5..a38ab10 100644 --- a/js/minipaint.js +++ b/js/minipaint.js @@ -166,10 +166,51 @@ async function replaceActorTexture(type) { return; } - const directoryPath = type === 'prototypeToken' - ? minipaintDoc.prototypeToken.texture.src.substring(0, minipaintDoc.prototypeToken.texture.src.lastIndexOf("/")) - : minipaintDoc.img.substring(0, minipaintDoc.img.lastIndexOf("/")); - + let originalPath = type === 'prototypeToken' + ? minipaintDoc.prototypeToken.texture.src + : minipaintDoc.img; + + let directoryPath; + + if (originalPath) { + directoryPath = originalPath.substring(0, originalPath.lastIndexOf("/")); + + // Check if the directory is writable (user data) or not (core data) + try { + await FilePicker.browse("data", directoryPath); + } catch (error) { + console.warn("Directory is not writable, switching to miniMapNewTiles."); + directoryPath = "miniMapNewTiles"; + + // Check if the fallback directory exists, and create it if it doesn't + try { + await FilePicker.browse("data", directoryPath); + } catch (error) { + if (error.message.includes("does not exist")) { + await FilePicker.createDirectory("data", directoryPath); + } else { + ui.notifications.error("Error accessing or creating the fallback directory."); + return; + } + } + } + } else { + // If originalPath is null, set the directory to 'miniMapNewTiles' in the root + directoryPath = "miniMapNewTiles"; + + // Check if the directory exists, and create it if it doesn't + try { + await FilePicker.browse("data", directoryPath); + } catch (error) { + if (error.message.includes("does not exist")) { + await FilePicker.createDirectory("data", directoryPath); + } else { + ui.notifications.error("Error accessing or creating the directory."); + return; + } + } + } + const randomFilename = generateRandomFilename() + ".png"; const file = new File([blob], randomFilename, { type: blob.type }); @@ -181,13 +222,19 @@ async function replaceActorTexture(type) { } else { await minipaintDoc.update({ "img": response.path }); } - // ui.notifications.info("Image updated successfully."); + // ui.notifications.info("Image updated successfully."); } else { ui.notifications.error("Failed to upload the modified image."); } }, "image/png"); } +// Function to generate a random filename +function generateRandomFilename() { + return Math.random().toString(36).substring(2, 12); +} + + // Utility function to wait until miniPaint is fully loaded function waitForMiniPaintToLoad(callback) { const interval = setInterval(() => { From 27cde1121a88567d70ef14185d4bec7f2ff1ac10 Mon Sep 17 00:00:00 2001 From: DMKAL <83312683+tirzah2@users.noreply.github.com> Date: Thu, 8 Aug 2024 00:23:48 +0100 Subject: [PATCH 05/40] Update module.json --- module.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module.json b/module.json index bffd197..17c6c43 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "name": "minipaint", "title": "miniPaint", "description": "miniPaint is a full drawing tool to edit tile, tokens, items, generate art with AI, generate frames and tokens and so much more", - "version": "1.6", + "version": "1.6.1", "author": "DMKal", "minimumCoreVersion": "11", "compatibleCoreVersion": "12", @@ -35,5 +35,5 @@ "url": "https://github.com/tirzah2/minipaint", "readme": "https://github.com/tirzah2/minipaint/README.md", "manifest": "https://github.com/tirzah2/minipaint/releases/latest/download/module.json", - "download": "https://github.com/tirzah2/minipaint/releases/download/1.6/module.zip" + "download": "https://github.com/tirzah2/minipaint/releases/download/1.6.1/module.zip" } From 281538efc639bc8779402dca92b5ff869610b394 Mon Sep 17 00:00:00 2001 From: DMKAL <83312683+tirzah2@users.noreply.github.com> Date: Thu, 8 Aug 2024 02:39:14 +0100 Subject: [PATCH 06/40] Update minipaint.js --- js/minipaint.js | 658 ++++++++++++++++++++---------------------------- 1 file changed, 269 insertions(+), 389 deletions(-) diff --git a/js/minipaint.js b/js/minipaint.js index a38ab10..e3454fa 100644 --- a/js/minipaint.js +++ b/js/minipaint.js @@ -9,7 +9,6 @@ Hooks.once('init', () => { default: "", }); }); - let minipaintDoc; Hooks.once('init', () => { game.settings.register('minipaint', 'removeBgApiKey', { @@ -95,7 +94,6 @@ async function launchMiniPaintForActor(minipaintDoc, type) { highlightRelevantButton(type); // Highlight the relevant button }); } - // Function to highlight the relevant button function highlightRelevantButton(type) { const iframe = document.getElementById('myFrame'); @@ -116,125 +114,10 @@ function highlightRelevantButton(type) { } } } - -// Function to load the actor's prototype token or image into miniPaint -async function loadActorTexture(textureSrc) { - const image = new Image(); - image.src = textureSrc; - - image.onload = () => { - const Layers = document.getElementById('myFrame').contentWindow.Layers; - const name = image.src.replace(/^.*[\\\/]/, ''); - const new_layer = { - name: name, - type: 'image', - data: image, - width: image.naturalWidth || image.width, - height: image.naturalHeight || image.height, - width_original: image.naturalWidth || image.width, - height_original: image.naturalHeight || image.height, - }; - Layers.insert(new_layer); - }; - - image.onerror = () => { - ui.notifications.error("Failed to load the image."); - }; -} - -// Function to save the modified image back to the actor's prototype token or actor image -async function replaceActorTexture(type) { - // Use the global minipaintDoc variable - const minipaintDoc = window.parent.minipaintDoc; - - if (!minipaintDoc) { - ui.notifications.error("No actor document found."); - return; - } - - const iframe = document.getElementById('myFrame'); - const minipaintCanvas = iframe.contentWindow.document.querySelector('#canvas_minipaint'); - - if (!minipaintCanvas) { - ui.notifications.error("Could not find the miniPaint canvas."); - return; - } - - minipaintCanvas.toBlob(async (blob) => { - if (!blob) { - ui.notifications.error("Failed to create a Blob from the canvas."); - return; - } - - let originalPath = type === 'prototypeToken' - ? minipaintDoc.prototypeToken.texture.src - : minipaintDoc.img; - - let directoryPath; - - if (originalPath) { - directoryPath = originalPath.substring(0, originalPath.lastIndexOf("/")); - - // Check if the directory is writable (user data) or not (core data) - try { - await FilePicker.browse("data", directoryPath); - } catch (error) { - console.warn("Directory is not writable, switching to miniMapNewTiles."); - directoryPath = "miniMapNewTiles"; - - // Check if the fallback directory exists, and create it if it doesn't - try { - await FilePicker.browse("data", directoryPath); - } catch (error) { - if (error.message.includes("does not exist")) { - await FilePicker.createDirectory("data", directoryPath); - } else { - ui.notifications.error("Error accessing or creating the fallback directory."); - return; - } - } - } - } else { - // If originalPath is null, set the directory to 'miniMapNewTiles' in the root - directoryPath = "miniMapNewTiles"; - - // Check if the directory exists, and create it if it doesn't - try { - await FilePicker.browse("data", directoryPath); - } catch (error) { - if (error.message.includes("does not exist")) { - await FilePicker.createDirectory("data", directoryPath); - } else { - ui.notifications.error("Error accessing or creating the directory."); - return; - } - } - } - - const randomFilename = generateRandomFilename() + ".png"; - - const file = new File([blob], randomFilename, { type: blob.type }); - const response = await FilePicker.upload("data", directoryPath, file, {}); - - if (response.path) { - if (type === 'prototypeToken') { - await minipaintDoc.update({ "prototypeToken.texture.src": response.path }); - } else { - await minipaintDoc.update({ "img": response.path }); - } - // ui.notifications.info("Image updated successfully."); - } else { - ui.notifications.error("Failed to upload the modified image."); - } - }, "image/png"); -} - // Function to generate a random filename function generateRandomFilename() { return Math.random().toString(36).substring(2, 12); } - - // Utility function to wait until miniPaint is fully loaded function waitForMiniPaintToLoad(callback) { const interval = setInterval(() => { @@ -245,7 +128,6 @@ function waitForMiniPaintToLoad(callback) { } }, 100); // Check every 100ms } - // Function to open miniPaint and automatically load the selected tile or token async function openMiniPaintWithAutoLoad() { const selectedTiles = canvas.tiles.controlled; @@ -283,7 +165,6 @@ async function openMiniPaint() { const dialog = new Dialog(dialogData, dialogOptions); dialog.render(true); } - // Utility function to wait until miniPaint is fully loaded function waitForMiniPaintToLoad(callback) { const interval = setInterval(() => { @@ -294,124 +175,66 @@ function waitForMiniPaintToLoad(callback) { } }, 100); // Check every 100ms } +// Function to save the modified image back to the actor's prototype token or actor image +// Helper function to strip the cache-busting query string from a path +function stripCacheBusting(path) { + if (!path) { + return null; + } + return path.split('?')[0]; +} +// Function to replace actor texture with cache busting +async function replaceActorTexture(type) { + const minipaintDoc = window.parent.minipaintDoc; -// Function to load the selected tile as a layer into miniPaint -async function loadTile() { - const selectedTiles = canvas.tiles.controlled; - - if (selectedTiles.length !== 1) { - ui.notifications.warn("Please select exactly one tile."); + if (!minipaintDoc) { + ui.notifications.error("No actor document found."); return; } - const tile = selectedTiles[0]; - const tileSrc = tile.document.texture.src; // Corrected property to get the tile image source + const iframe = document.getElementById('myFrame'); + const minipaintCanvas = iframe.contentWindow.document.querySelector('#canvas_minipaint'); - if (!tileSrc) { - ui.notifications.error("Tile image source not found."); + if (!minipaintCanvas) { + ui.notifications.error("Could not find the miniPaint canvas."); return; } - const image = new Image(); - image.src = tileSrc; - - image.onload = () => { - const Layers = document.getElementById('myFrame').contentWindow.Layers; - const name = image.src.replace(/^.*[\\\/]/, ''); - const new_layer = { - name: name, - type: 'image', - data: image, - width: image.naturalWidth || image.width, - height: image.naturalHeight || image.height, - width_original: image.naturalWidth || image.width, - height_original: image.naturalHeight || image.height, - }; - Layers.insert(new_layer); - }; - - image.onerror = () => { - ui.notifications.error("Failed to load the tile image."); - }; -} -// Function to browse Foundry file picker and load the selected image as a layer -async function browseFoundry() { - // Open the Foundry file picker - const picker = new FilePicker({ - type: "image", - callback: (path) => { - if (!path) { - ui.notifications.warn("No image selected."); - return; - } - - const image = new Image(); - image.src = path; - - image.onload = () => { - const Layers = document.getElementById('myFrame').contentWindow.Layers; - const name = image.src.replace(/^.*[\\\/]/, ''); - const new_layer = { - name: name, - type: 'image', - data: image, - width: image.naturalWidth || image.width, - height: image.naturalHeight || image.height, - width_original: image.naturalWidth || image.width, - height_original: image.naturalHeight || image.height, - }; - Layers.insert(new_layer); - // ui.notifications.info("Image loaded as a layer successfully."); - }; - - image.onerror = () => { - ui.notifications.error("Failed to load the selected image."); - }; - }, - top: 100, - left: 100, - button: "Browse" - }); - - picker.render(true); -} + minipaintCanvas.toBlob(async (blob) => { + if (!blob) { + ui.notifications.error("Failed to create a Blob from the canvas."); + return; + } -// Function to replace the selected tile's image with the modified image from miniPaint -// Utility function to generate a random 10-character alphanumeric string -function generateRandomFilename() { - const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; - let result = ''; - for (let i = 0; i < 10; i++) { - result += chars.charAt(Math.floor(Math.random() * chars.length)); - } - return result; -} + let originalPath = type === 'prototypeToken' + ? minipaintDoc.prototypeToken.texture.src + : minipaintDoc.img; -async function replaceTile() { - const selectedTiles = canvas.tiles.controlled; + // Strip the cache-busting query string, if present + if (originalPath) { + originalPath = stripCacheBusting(originalPath); + } - if (selectedTiles.length !== 1) { - ui.notifications.warn("Please select exactly one tile."); - return; - } + let directoryPath = originalPath ? originalPath.substring(0, originalPath.lastIndexOf("/")) : null; + let fileName = originalPath ? originalPath.substring(originalPath.lastIndexOf("/") + 1) : generateRandomFilename() + ".png"; - const tile = selectedTiles[0]; - let originalPath = tile.document.texture.src; - let directoryPath; - - // Determine the directory path - if (originalPath) { - directoryPath = originalPath.substring(0, originalPath.lastIndexOf("/")); + // If the original file is "mystery-man.svg", we rename it and convert it to PNG + if (fileName === "mystery-man.svg") { + fileName = generateRandomFilename() + ".png"; + } - // Check if the directory is writable (user data) or not (core data) + // Check if the directory is writable or accessible try { - await FilePicker.browse("data", directoryPath); + if (directoryPath) { + await FilePicker.browse("data", directoryPath); + } else { + throw new Error("Original directory path is null."); + } } catch (error) { console.warn("Directory is not writable, switching to miniMapNewTiles."); directoryPath = "miniMapNewTiles"; - // Check if the fallback directory exists, and create it if it doesn't try { await FilePicker.browse("data", directoryPath); } catch (error) { @@ -423,18 +246,56 @@ async function replaceTile() { } } } - } else { - // If originalPath is null, set the directory to 'miniMapNewTiles' in the root + + const file = new File([blob], fileName, { type: 'image/png' }); + const response = await FilePicker.upload("data", directoryPath, file, {}); + + if (response.path) { + const cacheBustedPath = `${stripCacheBusting(response.path)}?${Date.now()}`; + if (type === 'prototypeToken') { + await minipaintDoc.update({ "prototypeToken.texture.src": cacheBustedPath }); + } else { + await minipaintDoc.update({ "img": cacheBustedPath }); + } + ui.notifications.info("Image updated successfully."); + } else { + ui.notifications.error("Failed to upload the modified image."); + } + }, "image/png"); +} + +async function replaceTile() { + const selectedTiles = canvas.tiles.controlled; + + if (selectedTiles.length !== 1) { + ui.notifications.warn("Please select exactly one tile."); + return; + } + + const tile = selectedTiles[0]; + let originalPath = stripCacheBusting(tile.document.texture.src); + + if (!originalPath) { + originalPath = null; + } + + let directoryPath = originalPath ? originalPath.substring(0, originalPath.lastIndexOf("/")) : "miniMapNewTiles"; + let fileName = originalPath ? originalPath.substring(originalPath.lastIndexOf("/") + 1) : generateRandomFilename() + ".png"; + + // Check if the directory is writable or accessible + try { + await FilePicker.browse("data", directoryPath); + } catch (error) { + console.warn("Directory is not writable, switching to miniMapNewTiles."); directoryPath = "miniMapNewTiles"; - // Check if the directory exists, and create it if it doesn't try { await FilePicker.browse("data", directoryPath); } catch (error) { if (error.message.includes("does not exist")) { await FilePicker.createDirectory("data", directoryPath); } else { - ui.notifications.error("Error accessing or creating the directory."); + ui.notifications.error("Error accessing or creating the fallback directory."); return; } } @@ -448,26 +309,18 @@ async function replaceTile() { return; } - // Convert the miniPaint canvas content to a Blob minipaintCanvas.toBlob(async (blob) => { if (!blob) { ui.notifications.error("Failed to create a Blob from the canvas."); return; } - // Generate a random filename - const randomFilename = generateRandomFilename() + ".png"; - - // Create a File object from the Blob with the random filename - const file = new File([blob], randomFilename, { type: blob.type }); - - // Upload the image file to the determined directory + const file = new File([blob], fileName, { type: blob.type }); const response = await FilePicker.upload("data", directoryPath, file, {}); if (response.path) { - // Update the tile with the new image source - await tile.document.update({ "texture.src": response.path }); - + const cacheBustedPath = `${response.path}?${Date.now()}`; + await tile.document.update({ "texture.src": cacheBustedPath }); ui.notifications.info("Tile image replaced successfully."); } else { ui.notifications.error("Failed to upload the modified image."); @@ -475,44 +328,7 @@ async function replaceTile() { }, "image/png"); } -async function loadToken() { - const selectedTokens = canvas.tokens.controlled; - - if (selectedTokens.length !== 1) { - ui.notifications.warn("Please select exactly one token."); - return; - } - - const token = selectedTokens[0]; - const tokenSrc = token.document.texture.src; - if (!tokenSrc) { - ui.notifications.error("Token image source not found."); - return; - } - - const image = new Image(); - image.src = tokenSrc; - - image.onload = () => { - const Layers = document.getElementById('myFrame').contentWindow.Layers; - const name = image.src.replace(/^.*[\\\/]/, ''); - const new_layer = { - name: name, - type: 'image', - data: image, - width: image.naturalWidth || image.width, - height: image.naturalHeight || image.height, - width_original: image.naturalWidth || image.width, - height_original: image.naturalHeight || image.height, - }; - Layers.insert(new_layer); - }; - - image.onerror = () => { - ui.notifications.error("Failed to load the token image."); - }; -} async function replaceToken() { const selectedTokens = canvas.tokens.controlled; @@ -523,43 +339,38 @@ async function replaceToken() { const token = selectedTokens[0]; let originalPath = token.document.texture.src; - let directoryPath; - // Determine the directory path + // Strip the cache-busting query string, if present if (originalPath) { - directoryPath = originalPath.substring(0, originalPath.lastIndexOf("/")); + originalPath = stripCacheBusting(originalPath); + } - // Check if the directory is writable (user data) or not (core data) - try { - await FilePicker.browse("data", directoryPath); - } catch (error) { - console.warn("Directory is not writable, switching to miniMapNewTiles."); - directoryPath = "miniMapNewTiles"; + let directoryPath = originalPath ? originalPath.substring(0, originalPath.lastIndexOf("/")) : null; + let fileName = originalPath ? originalPath.substring(originalPath.lastIndexOf("/") + 1) : generateRandomFilename() + ".png"; - // Check if the fallback directory exists, and create it if it doesn't - try { - await FilePicker.browse("data", directoryPath); - } catch (error) { - if (error.message.includes("does not exist")) { - await FilePicker.createDirectory("data", directoryPath); - } else { - ui.notifications.error("Error accessing or creating the fallback directory."); - return; - } - } + // If the original file is "mystery-man.svg", we rename it and convert it to PNG + if (fileName === "mystery-man.svg") { + fileName = generateRandomFilename() + ".png"; + } + + // Check if the directory is writable or accessible + try { + if (directoryPath) { + await FilePicker.browse("data", directoryPath); + } else { + throw new Error("Original directory path is null."); } - } else { - // If originalPath is null, set the directory to 'miniMapNewTiles' in the root + } catch (error) { + console.warn("Directory is not writable, switching to miniMapNewTiles."); directoryPath = "miniMapNewTiles"; - // Check if the directory exists, and create it if it doesn't try { await FilePicker.browse("data", directoryPath); } catch (error) { if (error.message.includes("does not exist")) { await FilePicker.createDirectory("data", directoryPath); } else { - ui.notifications.error("Error accessing or creating the directory."); + ui.notifications.error("Error accessing or creating the fallback directory."); return; } } @@ -573,39 +384,190 @@ async function replaceToken() { return; } - // Convert the miniPaint canvas content to a Blob minipaintCanvas.toBlob(async (blob) => { if (!blob) { ui.notifications.error("Failed to create a Blob from the canvas."); return; } - // Generate a random filename - const randomFilename = generateRandomFilename() + ".png"; + const file = new File([blob], fileName, { type: 'image/png' }); + const response = await FilePicker.upload("data", directoryPath, file, {}); + + if (response.path) { + const cacheBustedPath = `${stripCacheBusting(response.path)}?${Date.now()}`; + await token.document.update({ "texture.src": cacheBustedPath }); + ui.notifications.info("Token image replaced successfully."); + } else { + ui.notifications.error("Failed to upload the modified image."); + } + }, "image/png"); +} + +async function replaceItemTexture() { + const iframe = document.getElementById('myFrame'); + const item = window.minipaintItem; + + if (!item) { + ui.notifications.error("No item is currently being edited."); + return; + } - // Create a File object from the Blob with the random filename - const file = new File([blob], randomFilename, { type: blob.type }); + const originalImagePath = stripCacheBusting(item.img); + let directoryPath = originalImagePath ? originalImagePath.substring(0, originalImagePath.lastIndexOf('/')) : null; - // Upload the image file to the determined directory + let fileName = originalImagePath ? originalImagePath.substring(originalImagePath.lastIndexOf("/") + 1) : generateRandomFilename() + ".png"; + + // Check if the directory is writable or accessible + try { + if (directoryPath) { + await FilePicker.browse("data", directoryPath); + } else { + throw new Error("Original directory path is null."); + } + } catch (error) { + console.warn("Directory is not writable, switching to miniMapNewTiles."); + directoryPath = "miniMapNewTiles"; + + try { + await FilePicker.browse("data", directoryPath); + } catch (error) { + if (error.message.includes("does not exist")) { + await FilePicker.createDirectory("data", directoryPath); + } else { + ui.notifications.error("Error accessing or creating the fallback directory."); + return; + } + } + } + + const canvas = iframe.contentWindow.document.querySelector('#canvas_minipaint'); + + if (!canvas) { + ui.notifications.error("Canvas not found."); + return; + } + + canvas.toBlob(async (blob) => { + if (!blob) { + ui.notifications.error("Failed to create a Blob from the canvas."); + return; + } + + const file = new File([blob], fileName, { type: blob.type }); const response = await FilePicker.upload("data", directoryPath, file, {}); if (response.path) { - // Update the token with the new image source - await token.document.update({ "texture.src": response.path }); - - ui.notifications.info("Token image replaced successfully."); + const cacheBustedPath = `${response.path}?${Date.now()}`; + await item.update({ img: cacheBustedPath }); + ui.notifications.info("Item image replaced successfully."); } else { ui.notifications.error("Failed to upload the modified image."); } }, "image/png"); } -// Function to generate a random filename -function generateRandomFilename() { - return Math.random().toString(36).substring(2, 12); + +function loadImageIntoMiniPaint(imageSrc) { + // Strip the cache-busting query string, if present + const cleanSrc = imageSrc.split('?')[0]; + + const image = new Image(); + image.src = cleanSrc; + + image.onload = () => { + const Layers = document.getElementById('myFrame').contentWindow.Layers; + const name = cleanSrc.replace(/^.*[\\\/]/, ''); // Use cleanSrc to name the layer + const new_layer = { + name: name, + type: 'image', + data: image, + width: image.naturalWidth || image.width, + height: image.naturalHeight || image.height, + width_original: image.naturalWidth || image.width, + height_original: image.naturalHeight || image.height, + }; + Layers.insert(new_layer); + }; + + image.onerror = () => { + ui.notifications.error("Failed to load the image."); + }; +} +// Function to load the selected tile as a layer into miniPaint +async function loadTile() { + const selectedTiles = canvas.tiles.controlled; + + if (selectedTiles.length !== 1) { + ui.notifications.warn("Please select exactly one tile."); + return; + } + + const tile = selectedTiles[0]; + const tileSrc = tile.document.texture.src; + + if (!tileSrc) { + ui.notifications.error("Tile image source not found."); + return; + } + + loadImageIntoMiniPaint(tileSrc); } +// Function to load the selected token as a layer into miniPaint +async function loadToken() { + const selectedTokens = canvas.tokens.controlled; + if (selectedTokens.length !== 1) { + ui.notifications.warn("Please select exactly one token."); + return; + } + const token = selectedTokens[0]; + const tokenSrc = token.document.texture.src; + + if (!tokenSrc) { + ui.notifications.error("Token image source not found."); + return; + } + + loadImageIntoMiniPaint(tokenSrc); +} +async function loadActorTexture(textureSrc) { + loadImageIntoMiniPaint(textureSrc); +} +// Function to load the item texture as a layer into miniPaint +async function loadItemTexture(textureSrc) { + loadImageIntoMiniPaint(textureSrc); +} +// Function to browse Foundry file picker and load the selected image as a layer +async function browseFoundry() { + const picker = new FilePicker({ + type: "image", + callback: (path) => { + if (!path) { + ui.notifications.warn("No image selected."); + return; + } + + loadImageIntoMiniPaint(path); + }, + top: 100, + left: 100, + button: "Browse" + }); + + picker.render(true); +} + +// Function to replace the selected tile's image with the modified image from miniPaint +// Utility function to generate a random 10-character alphanumeric string +function generateRandomFilename() { + const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; + let result = ''; + for (let i = 0; i < 10; i++) { + result += chars.charAt(Math.floor(Math.random() * chars.length)); + } + return result; +} async function showCanvasInImagePopout() { const iframe = document.getElementById('myFrame'); @@ -640,7 +602,6 @@ async function showCanvasInImagePopout() { ui.notifications.error("Failed to upload the image."); } } - // Utility function to convert a data URL to a File object const urlToFile = async (url, filename) => { const response = await fetch(url); @@ -737,8 +698,6 @@ async function removeBackgroundAndAddLayer() { }, "image/png"); } - - async function applySketchEffect() { const apiKey = game.settings.get('minipaint', 'stabilityAiApiKey'); if (!apiKey) { @@ -912,7 +871,6 @@ async function removeBackgroundUsingStabilityAI() { } }, "image/png"); } - async function searchAndReplace() { const iframe = document.getElementById('myFrame'); const minipaintCanvas = iframe.contentWindow.document.querySelector('#canvas_minipaint'); @@ -1045,18 +1003,15 @@ function open_tokenframe() { function openFrame1() { openFrame('modules/minipaint/images/ringsimple1.json'); } - function openFrame2() { openFrame('modules/minipaint/images/ringsimple2.json'); } - function openFrame3() { openFrame('modules/minipaint/images/ringsimple3.json'); } function openFrame4() { openFrame('modules/minipaint/images/tokenhead.json'); } - // Generic function to open any frame JSON file function openFrame(jsonPath) { // Access the miniPaint iframe and its FileOpen function @@ -1104,7 +1059,6 @@ function registerMiniPaintContextMenu() { }); }); } - // Function to launch miniPaint for editing an item's image async function launchMiniPaintForItem(item, imgPath) { // Check if the image path is valid @@ -1122,83 +1076,9 @@ async function launchMiniPaintForItem(item, imgPath) { loadItemTexture(imgPath); }); } - -// Function to load the item's image into miniPaint as a new layer -async function loadItemTexture(textureSrc) { - const image = new Image(); - image.src = textureSrc; - - image.onload = () => { - const Layers = document.getElementById('myFrame').contentWindow.Layers; - const name = image.src.replace(/^.*[\\\/]/, ''); - const new_layer = { - name: name, - type: 'image', - data: image, - width: image.naturalWidth || image.width, - height: image.naturalHeight || image.height, - width_original: image.naturalWidth || image.width, - height_original: image.naturalHeight || image.height, - }; - Layers.insert(new_layer); - console.log("Image added to miniPaint as a new layer."); - }; - - image.onerror = () => { - ui.notifications.error("Failed to load the image."); - }; -} - // Register the context menu option registerMiniPaintContextMenu(); -async function replaceItemTexture() { - const iframe = document.getElementById('myFrame'); - const item = window.minipaintItem; - - if (!item) { - ui.notifications.error("No item is currently being edited."); - return; - } - - // Get the original image path - const originalImagePath = item.img; - const directoryPath = originalImagePath.substring(0, originalImagePath.lastIndexOf('/')); - - // Convert the miniPaint canvas content to a Blob - const iframeDoc = iframe.contentWindow.document; - const canvas = iframeDoc.querySelector('#canvas_minipaint'); - - if (!canvas) { - ui.notifications.error("Canvas not found."); - return; - } - - canvas.toBlob(async (blob) => { - if (!blob) { - ui.notifications.error("Failed to create a Blob from the canvas."); - return; - } - - // Generate a random filename - const randomFilename = generateRandomFilename() + ".png"; - - // Create a File object from the Blob with the random filename - const file = new File([blob], randomFilename, { type: blob.type }); - - // Upload the image file to the same directory as the original item image - const response = await FilePicker.upload("data", directoryPath, file, {}); - - if (response.path) { - // Update the item with the new image source - await item.update({ img: response.path }); - ui.notifications.info("Item image replaced successfully."); - } else { - ui.notifications.error("Failed to upload the modified image."); - } - }, "image/png"); -} - async function applyInpaintToken() { const apiKey = game.settings.get('minipaint', 'stabilityAiApiKey'); From fd79de804db7b3e35ca18558f2bf0869d562a599 Mon Sep 17 00:00:00 2001 From: DMKAL <83312683+tirzah2@users.noreply.github.com> Date: Thu, 8 Aug 2024 02:39:38 +0100 Subject: [PATCH 07/40] Update module.json --- module.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module.json b/module.json index 17c6c43..cfc6060 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "name": "minipaint", "title": "miniPaint", "description": "miniPaint is a full drawing tool to edit tile, tokens, items, generate art with AI, generate frames and tokens and so much more", - "version": "1.6.1", + "version": "1.7", "author": "DMKal", "minimumCoreVersion": "11", "compatibleCoreVersion": "12", @@ -35,5 +35,5 @@ "url": "https://github.com/tirzah2/minipaint", "readme": "https://github.com/tirzah2/minipaint/README.md", "manifest": "https://github.com/tirzah2/minipaint/releases/latest/download/module.json", - "download": "https://github.com/tirzah2/minipaint/releases/download/1.6.1/module.zip" + "download": "https://github.com/tirzah2/minipaint/releases/download/1.7/module.zip" } From 34a1d235e596e2e1c7b76ff9276d2d82556cd003 Mon Sep 17 00:00:00 2001 From: DMKAL <83312683+tirzah2@users.noreply.github.com> Date: Thu, 8 Aug 2024 12:03:47 +0100 Subject: [PATCH 08/40] Update minipaint.html --- templates/minipaint.html | 59 ++++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 29 deletions(-) diff --git a/templates/minipaint.html b/templates/minipaint.html index eb33855..9275e3f 100644 --- a/templates/minipaint.html +++ b/templates/minipaint.html @@ -236,48 +236,49 @@ } - const menuBar = iframeDocument.querySelector('.menu_bar'); - - if (menuBar) { - // Create the Load Tile and Load Token menu items - const loadTileMenuItem = iframeDocument.createElement('li'); - loadTileMenuItem.innerHTML = ` - - Tile + const menuBar = iframeDocument.querySelector('.menu_bar'); + + if (menuBar) { + // Create Load Selected menu item + const loadSelectedMenuItem = iframeDocument.createElement('li'); + loadSelectedMenuItem.innerHTML = ` + + Load Selected `; - const loadTokenMenuItem = iframeDocument.createElement('li'); - loadTokenMenuItem.innerHTML = ` - - Token + + // Create Replace Selected menu item + const replaceSelectedMenuItem = iframeDocument.createElement('li'); + replaceSelectedMenuItem.innerHTML = ` + + Replace Selected `; + // Browse Foundry Menu Item const loadBrowseMenuItem = iframeDocument.createElement('li'); loadBrowseMenuItem.innerHTML = ` - + Foundry `; - // Create the Replace Tile and Replace Token menu items - const replaceTileMenuItem = iframeDocument.createElement('li'); - replaceTileMenuItem.innerHTML = ` - - Tile - - `; - const replaceTokenMenuItem = iframeDocument.createElement('li'); - replaceTokenMenuItem.innerHTML = ` - - Token + + // Save Foundry Menu Item + const saveFoundryMenuItem = iframeDocument.createElement('li'); + saveFoundryMenuItem.innerHTML = ` + + Foundry `; - menuBar.insertBefore(replaceTokenMenuItem, menuBar.firstChild); - menuBar.insertBefore(replaceTileMenuItem, menuBar.firstChild); - menuBar.insertBefore(loadBrowseMenuItem, menuBar.firstChild); - menuBar.insertBefore(loadTokenMenuItem, menuBar.firstChild); - menuBar.insertBefore(loadTileMenuItem, menuBar.firstChild); + + // Insert menu items into the menu bar in the correct order + menuBar.insertBefore(loadSelectedMenuItem, menuBar.firstChild); + menuBar.insertBefore(replaceSelectedMenuItem, loadSelectedMenuItem.nextSibling); + menuBar.insertBefore(loadBrowseMenuItem, replaceSelectedMenuItem.nextSibling); + menuBar.insertBefore(saveFoundryMenuItem, loadBrowseMenuItem.nextSibling); } + + } } From 534dd826ee9e3e48ee048234b88119ab4a7674ee Mon Sep 17 00:00:00 2001 From: DMKAL <83312683+tirzah2@users.noreply.github.com> Date: Thu, 8 Aug 2024 12:04:18 +0100 Subject: [PATCH 09/40] Update minipaint.js --- js/minipaint.js | 243 +++++++++++++++++++++++++----------------------- 1 file changed, 128 insertions(+), 115 deletions(-) diff --git a/js/minipaint.js b/js/minipaint.js index e3454fa..b01e89b 100644 --- a/js/minipaint.js +++ b/js/minipaint.js @@ -1,4 +1,4 @@ -//seCKsBzKNhggbcp2XPphkYDv + Hooks.once('init', () => { game.settings.register('minipaint', 'stabilityAiApiKey', { name: "Stability AI API Key", @@ -175,7 +175,6 @@ function waitForMiniPaintToLoad(callback) { } }, 100); // Check every 100ms } -// Function to save the modified image back to the actor's prototype token or actor image // Helper function to strip the cache-busting query string from a path function stripCacheBusting(path) { if (!path) { @@ -183,6 +182,90 @@ function stripCacheBusting(path) { } return path.split('?')[0]; } +async function saveFoundry() { + const iframe = document.getElementById('myFrame'); + const minipaintCanvas = iframe.contentWindow.document.querySelector('#canvas_minipaint'); + + if (!minipaintCanvas) { + ui.notifications.error("Could not find the miniPaint canvas."); + return; + } + + // Show a dialog to prompt the user for a filename + const dialogContent = ` +
xyN!O3{*ir zw94Ji?VoJP2I(cI7NTFF0fqw$Bqu0{xCdFASI##;tU&%snppi^R$&$LNF#x5v~SB+ z@QHPXHMM!z7^GLv%H=zSeT~BjRkjm_ggbXEKHYt_lJT;m#>A!z`#%i+f$tf0$>ayO zA~v&wGwxZ4j-Z=c?wI|L7Jzijs9$K{{!6F;HcqMY546zPw1=GESJn$y-_!f+>I33A z6R8(%Sr7;1Bb(u0GWj1v-c>DSA}r88#j}g~t#0IZ^xCa26Q;|^O~TnJ=qWs|~ zQuRE;?J+ee+*|?_d*q0_1#t}01tZFv6Aq!Ulb!(g*Xl zx60Qf9Ht@O~VJm^TGJniqoZeU+o@I&J{LI|WwL?~YxoWQRDxpj`5SB#F5G z`6ArLIzJBKklJd%ScV4K$pa!6Vy$6}Uj`?0T4wFe5k)mXWNPXUX;m=Nax%x+9dURL z3>e55S6DdmQYJ1w52I2`i8 QflSRUlt@#JqmI>TnHfu5?XSck zok;jNAXf5pzwY_Mz*EXgBIjm7>QAImhQra`543-2%#PDTFfAP23A~hyt8HvxT8TYA z19Hv7*88oK${9=7$N)^~_=BHah4eZmBH$!mf+?Nb=pUNPuVgH*1i}OU2d2zHyT*1$ zyv~ixB9;G(iFb;wq-(oCyE{q8&W>%XW81cE+vwP~?PSMR$F^ 82Jftg|C#9C;M#VGpgcfjG@fY8Di@-Epq!BGs7+dUdOoyQM)J0OTe9? zEKfAN&-ouD-@ZWwk{C+KK&5`9T2_t3eu!r%h)x6=8OrY2r=6SL={HGtG%%aKM2iGc zp4r6cLT*gxA}+=z3dmg)BMK84Oh5Rc<%{7n_hN;AQqrGd7N}4)Pjy= G`QCOW|lDY`((4cH=a9ck41uzJH9|oxWwXwS|V4kHP5nGP^qiznPM;PCSA3@w}~t zEmEiFnE`X2+D5e O{S6#VjQ%H`ho^-VV+wAmUyiYrEhk-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