Convert Rw2 To Bmp

Request reference for convert-rw2-to-bmp.

Feature identity

These properties are constants for this feature. The server fills them in automatically; callers cannot override them.

propertyconst value
processCONVERT
fromMediaIMAGE
toMediaIMAGE
fromExtensionRW2

Options

propertytypealloweddefaultdescription
selectedanytrue
valueany0

Example request

curl
Shell
# Replace file_REPLACE_ME with the fileId returned by
# POST /v1/public/uploads + /uploads/<id>/complete.
curl -X POST 'https://api.xconvert.com/v1/public/jobs' \
  -H 'Authorization: Bearer $XCONVERT_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "featureId": "convert-rw2-to-bmp",
  "fileIds": [
    "file_REPLACE_ME"
  ],
  "fromType": "rw2",
  "toType": "bmp",
  "processType": "convert"
}'
TypeScript (@xconvert/sdk)
TypeScript
// npm install @xconvert/sdk
import { Xconvert } from '@xconvert/sdk/v1';

const xc = new Xconvert({ apiKey: process.env.XCONVERT_API_KEY! });

// 1. Upload the input file (see /docs/sdks/typescript for the full snippet).
// 2. Submit the conversion job:
const job = await xc.submitJob({
    featureId: 'convert-rw2-to-bmp',
    fileIds: [uploadedFileId],
    fromType: 'rw2',
    toType: 'bmp',
    processType: 'convert',
    options: {},  // server applies feature baselines + defaults
});

// 3. Wait for it to finish:
const final = await xc.pollUntilDone(job.id);
console.log(final.outputs?.[0]?.downloadUrl);
Python (xconvert)
Python
# pip install xconvert
import os
from xconvert.v1 import Xconvert, ClientOptions
from xconvert.v1.generated.models.create_job_request import CreateJobRequest

xc = Xconvert(ClientOptions(api_key=os.environ["XCONVERT_API_KEY"]))

# 1. Upload the input file (see /docs/sdks/python for the full snippet).
# 2. Submit the conversion job:
job = xc.submit_job(CreateJobRequest(
    feature_id="convert-rw2-to-bmp",
    file_ids=[uploaded_file_id],
    from_type="rw2",
    to_type="bmp",
    process_type="convert",
))

# 3. Wait for it to finish:
final = xc.poll_until_done(job.id)
print(final.outputs[0].download_url)