curl --request GET \
--url https://api.inprocess.world/api/media/imageimport requests
url = "https://api.inprocess.world/api/media/image"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.inprocess.world/api/media/image', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.inprocess.world/api/media/image",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.inprocess.world/api/media/image"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.inprocess.world/api/media/image")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.inprocess.world/api/media/image")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body"<string>"{
"status": "error",
"message": "Invalid or unsupported URL format"
}{
"status": "error",
"message": "Failed to process image"
}Proxy Image
Proxy and transform images from decentralized storage protocols like Arweave and IPFS. This endpoint fetches images from ar://, ipfs://, or https:// URLs and optionally resizes and converts them to a target format.
Supported URL formats:
ar://- Arweave URLs (e.g.,ar://abc123...)ipfs://- IPFS URLs (e.g.,ipfs://Qm...)https://- Direct HTTPS URLs
Images are processed using sharp and can be resized and converted to WebP, AVIF, JPEG, or PNG formats. Responses are cached with immutable cache headers.
curl --request GET \
--url https://api.inprocess.world/api/media/imageimport requests
url = "https://api.inprocess.world/api/media/image"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.inprocess.world/api/media/image', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.inprocess.world/api/media/image",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.inprocess.world/api/media/image"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.inprocess.world/api/media/image")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.inprocess.world/api/media/image")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body"<string>"{
"status": "error",
"message": "Invalid or unsupported URL format"
}{
"status": "error",
"message": "Failed to process image"
}Overview
The Image Proxy API fetches and transforms images from decentralized storage protocols like Arweave and IPFS. It acts as a proxy that:- Converts
ar://andipfs://URLs to fetchable gateway URLs - Resizes images to specified dimensions without enlargement
- Converts images to optimized formats (WebP, AVIF, JPEG, PNG)
- Returns immutable cache headers for efficient caching
Supported URL Formats
| Protocol | Format | Example |
|---|---|---|
| Arweave | ar:// | ar://abc123xyz... |
| IPFS | ipfs:// | ipfs://QmXyz... |
| HTTPS | https:// | https://arweave.net/abc123... |
Image Transformation
Whenw (width) or h (height) parameters are provided, the image is resized to fit within the specified dimensions using the inside fit strategy, meaning:
- The image will never be enlarged beyond its original size
- Aspect ratio is preserved
- The image fits within the bounding box defined by
wandh
Example Usage
Basic Request
curl "https://api.inprocess.world/api/media/image?url=ar://your-arweave-tx-id"
With Resize and Format Conversion
curl "https://api.inprocess.world/api/media/image?url=ar://your-arweave-tx-id&w=400&h=400&f=webp&q=85"
In an HTML Image Element
<img
src="https://api.inprocess.world/api/media/image?url=ar://your-arweave-tx-id&w=600&f=webp"
alt="Moment artwork"
/>
Query Parameters
The URL of the image to fetch. Supports Arweave (ar://), IPFS (ipfs://), and HTTPS URLs.
Target width in pixels. The image will be resized to fit within this width without enlargement.
1 <= x <= 4096Target height in pixels. The image will be resized to fit within this height without enlargement.
1 <= x <= 4096Image quality (1-100). Higher values produce better quality but larger files.
1 <= x <= 100Output image format.
webp, avif, jpeg, png Response
Processed image returned
The response is of type file.