$ Apple HEIC、iPhone照片、无损PNG
将HEIC照片转换为 PNG via API
通过REST API将iPhone和Mac的Apple HEIC图像转换为无损PNG格式。保留完整图像质量并使用n8n工作流自动化。
Free:每月 10 次转换,无需信用卡。Pro:$9/月。 比较套餐
# Convert HEIC image to PNG
curl -X POST \
https://api.convertfilefast.com/v2/convert/heic-to-png \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@photo.heic" \
--output photo.png
# HTTP 200 OK — Content-Type: image/pngimport requests
from pathlib import Path
# Batch convert HEIC files to PNG
heic_files = Path("./photos").glob("*.heic")
for heic_path in heic_files:
response = requests.post(
"https://api.convertfilefast.com/v2/convert/heic-to-png",
headers={"Authorization": "Bearer YOUR_API_KEY"},
files={"file": open(heic_path, "rb")}
)
out_path = heic_path.with_suffix(".png")
out_path.write_bytes(response.content)
print(f"Converted: {heic_path.name} → {out_path.name}")const formData = new FormData();
formData.append("file", fs.createReadStream("photo.heic"));
const response = await fetch(
"https://api.convertfilefast.com/v2/convert/heic-to-png",
{
method: "POST",
headers: { "Authorization": "Bearer YOUR_API_KEY" },
body: formData,
}
);
fs.writeFileSync("photo.png", Buffer.from(await response.arrayBuffer()));// n8n Workflow: Google Drive trigger → HEIC to PNG → Save back
// Step 1: Google Drive Trigger (new .heic file)
{
"node": "Google Drive Trigger",
"event": "fileCreated",
"fileExtension": "heic"
}
// Step 2: HTTP Request Node — Convert HEIC to PNG
{
"method": "POST",
"url": "https://api.convertfilefast.com/v2/convert/heic-to-png",
"contentType": "multipart-form-data",
"bodyParameters": {
"parameters": [
{ "name": "file", "parameterType": "formBinaryData", "inputDataFieldName": "data" }
]
},
"options": { "response": { "responseFormat": "file" } }
}2秒内转换完成
// 优势
为什么使用我们的API?
完整可靠的解决方案,适用于任何技术栈的集成。
无损PNG输出
PNG使用无损压缩,保留您HEIC照片的每个像素而不损失质量。
iPhone照片支持
将iPhone、iPad和Mac上拍摄的HEIC图像直接转换为PNG,无需本地软件。
批量处理
在一个自动化管道中将整个HEIC照片文件夹转换为PNG。非常适合照片库迁移。
通用兼容性
生成的PNG文件与每个设备、浏览器和图像编辑应用程序兼容。
n8n和自动化就绪
在n8n工作流中从Google Drive、Dropbox或Gmail触发HEIC转换。
零存储
HEIC文件在内存中转换并立即删除。您的照片永远不会存储在我们的服务器上。
// 面向 AI 智能体
也可以从 Claude、Cursor 或任意 MCP 客户端调用
Convert File Fast 提供原生的 Model Context Protocol 服务器。只需一次工具调用,即可把该转换交给 AI 智能体完成 —— 无需 HTTP 客户端,无需处理二进制,并为每个用户单独签发 API 密钥。
本地安装
npx -y convertfilefast-mcpMCP 工具调用
convert_file({ target_format: "png", source_url: "https://example.com/file.heic" })