Skip to content
smallPict

Installations- und Konfigurationsleitfaden

Installation des WordPress-Plugins, der offiziellen SDKs, CLI und MCP-KI-Agenten.

SmallPict passt sich flexibel an jede moderne Webarchitektur an – vom monolithischen WordPress-Projekt über Jamstack-Frontends bis hin zu autonomen KI-Agenten.


Installationswege

1. WordPress-Plugin

  1. Laden Sie das aktuelle ZIP-Archiv aus dem Dashboard herunter oder suchen Sie im WordPress-Verzeichnis nach SmallPict (wp-admin > Plugins > Installieren).
  2. Klicken Sie auf Jetzt installieren und anschließend auf Aktivieren.
  3. Öffnen Sie den Menüpunkt SmallPict in der linken Seitenleiste.
  4. Fügen Sie Ihren API-Schlüssel sp_wp_... ein.
  5. Wählen Sie das Ausgabeformat und speichern Sie: WebP in Free, WebP oder AVIF (ein Format) in Starter, AVIF mit WebP-Fallback in Pro und Business. Künftige Uploads werden automatisch optimiert.

2. Offizielles Ökosystem mit 7 SDKs

Installieren Sie das passende native Paket über Ihren bevorzugten Paketmanager:

Shell
# Node.js & TypeScriptnpm install @smallpict/sdk
# Golanggo get github.com/tuxnoob/smallpict-go
# Pythonpip install smallpict
# PHP (Composer)composer require smallpict/smallpict-php
# Rust (Cargo)cargo add smallpict
# Ruby (Bundler)gem install smallpict

3. Direkte REST-API-Einbindung

In Umgebungen ohne natives SDK (z. B. C#, Swift oder Elixir) sprechen Sie die Endpunkte direkt per HTTP an:

Shell
curl -X POST https://api.smallpict.app/v1/optimize \  -H "X-API-Key: sp_sdk_9a8b7c6d5e4f..." \  -H "X-Timestamp: 1716301234" \  -H "X-Signature: 3a9f8b2c4d6e8a..." \  -H "Content-Type: application/json" \  -d {  "filename": "hero.jpg",  "mime_type": "image/jpeg",  "filesize": 2508800,  "options": {    "format": "avif",    "quality": 80,    "max_width": 1920  }}'

4. Integration für KI-Coding-Assistenten (MCP)

Fügen Sie in Claude Desktop, Cursor oder MCP-fähigen Umgebungen die Serverkonfiguration hinzu:

JSON
{  "mcpServers": {    "smallpict": {      "command": "npx",      "args": [        "-y",        "@smallpict/mcp"      ],      "env": {        "SMALLPICT_API_KEY": "sp_sdk_your_api_key_here"      }    }  }}