Getting Started使い方
Generate custom SVG images by simply specifying the image size and parameters in the URL.URLに画像サイズとパラメータを指定するだけで、カスタムSVG画像を生成できます。
Basic Usage基本的な使い方
https://sampleimg.YOUR-SUBDOMAIN.workers.dev/800x450Free Placeholder Image API with QR, OG, Avatar, Chart & MoreURLパラメータで動的にカスタマイズ可能なSVG画像生成API
Generate custom SVG images by simply specifying the image size and parameters in the URL.URLに画像サイズとパラメータを指定するだけで、カスタムSVG画像を生成できます。
https://sampleimg.YOUR-SUBDOMAIN.workers.dev/800x450| Parameterパラメータ | Description説明 | Defaultデフォルト | Example例 |
|---|---|---|---|
size | Image size (width x height)画像サイズ(幅x高さ) | - | 800x450 |
bg | Background color (hex, without #)背景色(hex、#なし) | cccccc | ?bg=ff6b6b |
fg | Text color (hex, without #)文字色(hex、#なし) | 333333 | ?fg=ffffff |
text | Display text (max 100 chars)表示テキスト(最大100文字) | Size (e.g., 800x450)サイズ(例: 800x450) | ?text=Hello |
format | Output format (svg/png/jpeg/webp)出力形式 (svg/png/jpeg/webp) | png | ?format=svg |
radius | Corner radius (0-100px)角丸半径(0-100px) | 0 | ?radius=20 |
border | Border width (0-50px)枠線幅(0-50px) | 0 | ?border=2 |
borderColor | Border color (hex, without #)枠線色(hex、#なし) | 000000 | ?borderColor=ff0000 |
padding | Inner padding (0-200px)内部余白(0-200px) | 0 | ?padding=40 |
align | Text horizontal alignmentテキスト水平位置 | center | ?align=left |
valign | Text vertical alignmentテキスト垂直位置 | middle | ?valign=top |
weight | Font weight (normal/bold/100-900)フォント太さ(normal/bold/100-900) | normal | ?weight=bold |
lineHeight | Line height (0.5-3.0)行間(0.5-3.0) | 1.2 | ?lineHeight=1.5 |
letterSpacing | Letter spacing (-10 to 50px)字間(-10~50px) | 0 | ?letterSpacing=2 |
gradient | Gradient type (linear | radial)グラデーション種類(linear | radial) | - | ?gradient=linear |
angle | Gradient angle (0-360°, linear only)グラデーション角度(0-360度、線形のみ) | 90 | ?angle=45 |
stops | Color stops (format: color,offset|color,offset)カラーストップ(形式: color,offset|color,offset) | - | ?stops=ff0000,0|00ff00,100 |
noise | Noise intensity (0-100)ノイズ強度(0-100) | 0 | ?noise=30 |
pattern | Pattern type (dot | grid | diagonal)パターン種類(dot | grid | diagonal) | - | ?pattern=dot |
patternColor | Pattern color (hex without #)パターン色(hex、#なし) | 000000 | ?patternColor=ff0000 |
Powered by Cloudflare Workers edge network for blazing fast access worldwideCloudflare Workersのエッジネットワークで世界中どこからでも高速アクセス
Long-term cache headers make subsequent requests ultra-fast. Global CDN delivery長期キャッシュヘッダーで2回目以降は超高速。CDNでグローバル配信
Freely combine background color, text color, text, and size背景色、文字色、テキスト、サイズを自由に組み合わせ可能
Accessible from any domain. No cross-origin restrictionsどんなドメインからでもアクセス可能。クロスオリジン制限なし
SVG scales beautifully at any size. Retina readySVGなので拡大縮小しても美しい。Retina対応
100% free up to 100K requests/month. Commercial use allowed月間10万リクエストまで完全無料。商用利用OK
Generate QR codes for URLs, text, and more.URL、テキストなどのQRコードを生成できます。
Generate Open Graph images (1200x630) for social media.ソーシャルメディア向けのOpen Graph画像(1200x630)を生成できます。
Generate deterministic identicons from any seed string.任意のseed文字列から決定性のあるIdenticonを生成できます。
Generate simple bar and line charts from data.データから簡易的な棒グラフと折れ線グラフを生成できます。
Generate pixel art using presets or custom patterns.プリセットまたはカスタムパターンを使用してドット絵を生成できます。
Overlay external images onto placeholder images. Supports position, size, and opacity control. Works with SVG and PNG formats.プレースホルダー画像に外部画像を重ねて合成できます。位置・サイズ・透明度の制御が可能です。SVG/PNG形式対応。
overlay: External image URL (required) 外部画像URL(必須)overlayX: X position (px, left/center/right, default: center) X座標(px、left/center/right、デフォルト: center)overlayY: Y position (px, top/middle/bottom, default: middle) Y座標(px、top/middle/bottom、デフォルト: middle)overlayWidth: Width (px, %, auto, default: auto) 幅(px、%、auto、デフォルト: auto)overlayHeight: Height (px, %, auto, default: auto) 高さ(px、%、auto、デフォルト: auto)overlayOpacity: Opacity (0.0-1.0, default: 1.0) 透明度(0.0-1.0、デフォルト: 1.0)/800x450?format=svg&overlay=https://example.com/logo.png&overlayX=right&overlayY=bottom&overlayOpacity=0.5<img src="https://sampleimg.YOUR-SUBDOMAIN.workers.dev/800x450?bg=4a90e2&text=Placeholder" alt="Placeholder">.hero {
background-image: url('https://sampleimg.YOUR-SUBDOMAIN.workers.dev/1920x1080?bg=667eea&text=Hero');
}