SVG Via PNG API
PNGtoSVG API ドキュメント
料金体系
エンドポイント
https://events-front.mixeder.net/v2/convertion/pngtosvg/利用方法
ヘッダー名
説明
必須
パラメーター名
タイプ
説明
必須
フィールド名
タイプ
説明
フィールド名
タイプ
説明
活用事例
サンプルコード
注意事項
最終更新
https://events-front.mixeder.net/v2/convertion/pngtosvg/最終更新
[
{
"success": true,
"fileName": "example.png",
"svg": "<svg>...</svg>"
}
][
{
"error": "PNGからSVGへの変換に失敗しました。"
}
]import requests
url = "https://events-front.mixeder.net/v2/convertion/pngtosvg/"
headers = {
"api-key": "your_api_key"
}
files = {
"files": open("example.png", "rb")
}
response = requests.post(url, headers=headers, files=files)
print(response.json())$apiUrl = "https://events-front.mixeder.net/v2/convertion/pngtosvg/";
$apiKey = "your_api_key";
$file = new CURLFile('example.png', 'image/png', 'example.png');
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $apiUrl);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"api-key: $apiKey"
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, [
'files' => $file
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;const axios = require('axios');
const FormData = require('form-data');
const fs = require('fs');
const url = "https://events-front.mixeder.net/v2/convertion/pngtosvg/";
const apiKey = "your_api_key";
const formData = new FormData();
formData.append("files", fs.createReadStream("example.png"));
axios.post(url, formData, {
headers: {
...formData.getHeaders(),
"api-key": apiKey
}
}).then(response => {
console.log(response.data);
}).catch(error => {
console.error(error);
});curl -X POST \
-H "api-key: your_api_key" \
-F "[email protected]" \
https://events-front.mixeder.net/v2/convertion/pngtosvg/