이미지

Resize an image

Upload a JPEG, PNG, or WebP and download a JPEG at the size you set, on devices you connect.

Resize Image

무료온라인무제한libwebp (WebP decoder, compiled to WebAssembly) API 액세스

API 레퍼런스

REST로 제출

개인 API 키(msk_…)를 사용하여 내 도구에서 이 워크로드의 작업을 생성하세요. 이렇게 시작한 작업은 내 기기에서 연결한 기기와 동일한 기기에서 실행되며, 최소 한 대는 온라인이어야 합니다.

API 세부 정보 숨기기
POSThttps://cp.meshlabs.cloud/v1/organizations/jobs

X-Organization-Api-Key: msk_your_personal_api_key로 인증합니다. 헤더 이름은 조직 키와 같으며, 개인 키도 같은 엔드포인트를 사용합니다.

입력 파일:같은 API 키로 POST https://cp.meshlabs.cloud/v1/organizations/job-inputs/presign을(를) 호출하고, 반환된 upload_url에 파일을 업로드한 다음, job_spec에 download_url을(를) 전달하세요(예: input_image_url로).

요청 본문

{
  "workload_type": "resize-image",
  "job_spec": {
    "input_image_url": "https://…/your-input.png",
    "fit": "contain",
    "quality": 85
  }
}

job_spec 필드

필드필수기본값설명
input_image_url예—JPEG, PNG, or WebP to resize. 40 MB maximum.
width아니요—Output width in pixels. Optional when height is set.
height아니요—Output height in pixels. Optional when width is set.
fit아니요containcontain pads, cover crops, stretch distorts. Default contain.
quality아니요85JPEG quality from 60 to 95. 85 is the default.

cURL

curl -X POST https://cp.meshlabs.cloud/v1/organizations/jobs \
  -H "X-Organization-Api-Key: msk_your_personal_api_key" \
  -H "Content-Type: application/json" \
  -d '{
  "workload_type": "resize-image",
  "job_spec": {
    "input_image_url": "https://…/your-input.png",
    "fit": "contain",
    "quality": 85
  }
}'
GEThttps://cp.meshlabs.cloud/v1/organizations/jobs/{job_id}

status이(가) 최종 상태(COMPLETED, FAILED, CANCELED 또는 MODERATION_BLOCKED)가 될 때까지 같은 API 키로 폴링하세요. 콘텐츠 검토가 활성화된 경우, 작업은 컴퓨팅 대기열에 들어가기 전에 MODERATION_PENDING 상태로 시작할 수 있습니다. 완료된 작업의 각 출력에는 사전 서명된 download_url 값이 포함됩니다.

생성 응답

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "workload_type": "resize-image",
  "status": "PENDING",
  "job_spec_json": {
    "input_image_url": "https://…/your-input.png",
    "fit": "contain",
    "quality": 85
  },
  "work_units": [],
  "outputs": [],
  "created_at": "2026-06-08T12:00:00Z",
  "updated_at": "2026-06-08T12:00:00Z"
}

완료 응답

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "workload_type": "resize-image",
  "status": "COMPLETED",
  "job_spec_json": {
    "input_image_url": "https://…/your-input.png",
    "fit": "contain",
    "quality": 85
  },
  "work_units": [
    {
      "id": "…",
      "index": 0,
      "status": "COMPLETED"
    }
  ],
  "outputs": [
    {
      "id": "…",
      "output_type": "<output type>",
      "filename": "<output filename>",
      "size_bytes": 524288,
      "download_url": "<presigned output download URL>"
    }
  ],
  "created_at": "2026-06-08T12:00:00Z",
  "updated_at": "<completion timestamp>"
}

Upload a JPEG, PNG, or WebP and get a JPEG at the pixel size you asked for — free, unlimited resize image on devices you connect. Set the width, the height, or both. Contain keeps the whole picture inside that box and pads the rest white. Cover fills the box and crops what does not fit. Stretch matches the box exactly, even when that changes the shape. Each edge stops at 8192 pixels, and the file you upload stops at 40 MB. There is no large model to download before the first picture.