image
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
name: New MCP server
|
name: New MCP server
|
||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
schema: v1
|
schema: v1
|
||||||
|
|
||||||
mcpServers:
|
mcpServers:
|
||||||
- name: playwright
|
- name: playwright
|
||||||
command: npx
|
command: npx
|
||||||
@@ -10,3 +11,11 @@ mcpServers:
|
|||||||
command: npx
|
command: npx
|
||||||
args: ["-y", "@modelcontextprotocol/server-filesystem", "C:\\Users\\greggy\\Desktop\\landingpage-haus-schleusingen"]
|
args: ["-y", "@modelcontextprotocol/server-filesystem", "C:\\Users\\greggy\\Desktop\\landingpage-haus-schleusingen"]
|
||||||
|
|
||||||
|
- name: gitea
|
||||||
|
command: npx
|
||||||
|
args: ["-y", "@modelcontextprotocol/server-gitea"]
|
||||||
|
env:
|
||||||
|
GITEA_URL: "https://git.home.kies-media.de"
|
||||||
|
GITEA_TOKEN: "5688416ff6b5805706f89178322de4e882692e34"
|
||||||
|
GITEA_REPO: "greggy/haus-schleusingen"
|
||||||
|
GITEA_BRANCH: "main"
|
||||||
23
_resize.cjs
Normal file
23
_resize.cjs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
const fs = require("fs");
|
||||||
|
const { execSync } = require("child_process");
|
||||||
|
|
||||||
|
// Read PNG dimensions
|
||||||
|
const buf = fs.readFileSync("screenshot-landingpage.png");
|
||||||
|
const width = buf.readUInt32BE(16);
|
||||||
|
const height = buf.readUInt32BE(20);
|
||||||
|
console.log("Original size: " + width + "x" + height);
|
||||||
|
|
||||||
|
console.log("Installing sharp for resizing...");
|
||||||
|
execSync("npm install sharp --no-save --silent", { stdio: "inherit" });
|
||||||
|
|
||||||
|
const sharp = require("sharp");
|
||||||
|
sharp("screenshot-landingpage.png")
|
||||||
|
.resize(300)
|
||||||
|
.toFile("screenshot-landingpage-thumb.png")
|
||||||
|
.then(function (info) {
|
||||||
|
console.log("Thumbnail created: " + info.width + "x" + info.height);
|
||||||
|
})
|
||||||
|
.catch(function (err) {
|
||||||
|
console.error("Error:", err);
|
||||||
|
process.exit(1);
|
||||||
|
});
|
||||||
BIN
screenshot-landingpage-thumb.png
Normal file
BIN
screenshot-landingpage-thumb.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 338 KiB |
Reference in New Issue
Block a user