Volledige installatiehandleiding
Installatie van de WordPress-plugin, officiële SDK's, CLI en MCP AI-agent configuratie.
SmallPict integreert soepel in elke moderne webinfrastructuur: van traditionele WordPress-installaties tot Jamstack-frontends en autonome AI-agenten.
Installatie-opties
1. WordPress-plugin
- Download het meest recente ZIP-archief via het dashboard of zoek naar SmallPict in de WordPress-directory (
wp-admin > Plugins > Nieuwe toevoegen). - Klik op Nu installeren en vervolgens op Activeren.
- Ga naar het menu SmallPict in het dashboard.
- Vul uw API-sleutel
sp_wp_...in. - Kies het uitvoerformaat en sla op: WebP bij Free, WebP of AVIF (één formaat) bij Starter, AVIF met WebP-fallback bij Pro en Business. Nieuwe uploads worden daarna automatisch geoptimaliseerd.
2. Ecosysteem van 7 officiële SDK's
Installeer de native bibliotheek via uw favoriete pakketbeheerder:
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 smallpict3. Directe REST API-koppeling
In omgevingen zonder specifieke SDK (zoals C#, Swift of Elixir) kunt u de REST-eindpunten rechtstreeks aanroepen:
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. Configuratie voor AI-agenten (MCP)
Voeg de server toe in Claude Desktop, Cursor of MCP-compatibele ontwikkelomgevingen:
JSON
{ "mcpServers": { "smallpict": { "command": "npx", "args": [ "-y", "@smallpict/mcp" ], "env": { "SMALLPICT_API_KEY": "sp_sdk_your_api_key_here" } } }}