Browser SDK fixed-source declaration with a JPEG path. Library contain/cover names compute content dimensions, not canonical fixed-canvas geometry. PNG, exact canvas and no-upscale remain unmet/unknown; never executed.
调用方式 / profile:browser-resizer-source-82480db8 · 组件版本:source:82480db8659b45bedece10a299510458caab0bc6;npm1.0.0-provenance-declared · 引用此版本与调用方式
已记录条件
- operation = image_delivery:支持。Supported within this profile and component version. 依据:browser-100-entry, browser-100-frame
- invocation_mode = sdk:支持。Supported within this profile and component version. 依据:browser-100-package, browser-100-entry
- execution_location = local:支持。Supported within this profile and component version. 依据:browser-100-entry
- runtime_os = browser:未知(可能存在冲突或待复核)。Source-declared browser APIs require a compatible implementation. Current browser version/codec/feature support was not tested; browser context alone is insufficient. 依据:
- output_format = jpeg:支持。Supported within this profile and component version. 依据:browser-100-entry, browser-100-frame
- input_format = image:未知(可能存在冲突或待复核)。Per-input decoder checks and the actual target browser/codec remain untested. 依据:
- input_format = png:未知(可能存在冲突或待复核)。The selected review did not validate PNG input decoding in a real environment. 依据:
- input_format = jpeg:未知(可能存在冲突或待复核)。No actual input was decoded. 依据:
- output_format = png:未知(可能存在冲突或待复核)。Official typed output union lists AVIF/JPEG/WebP; no supported PNG route is established. Invalid JavaScript casts do not expand the public contract. 依据:
- runtime_os = windows:未知(可能存在冲突或待复核)。Browser API source is not a Windows runtime test. 依据:
- runtime_os = linux:未知(可能存在冲突或待复核)。No target browser/OS combination was run. 依据:
- runtime_os = macos:未知(可能存在冲突或待复核)。No target browser/OS combination was run. 依据:
- cpu_only = true:未知(可能存在冲突或待复核)。Resize descriptions do not establish full encoder/hardware dependency requirements. 依据:
- gpu_required = false:未知(可能存在冲突或待复核)。Full dependency and codec/hardware requirements were not audited. 依据:
- runtime_network_required = false:未知(可能存在冲突或待复核)。Local SDK interface and no direct upload step are not a whole dependency/network audit. 依据:
- setup_network_required = false:未知(可能存在冲突或待复核)。Dependency acquisition/setup were not tested. 依据:
- setup_required = false:未知(可能存在冲突或待复核)。Existing authorized integration/usable browser APIs must be established by caller. 依据:
- auth_required = false:未知(可能存在冲突或待复核)。No complete application/account audit. 依据:
- account_required = false:未知(可能存在冲突或待复核)。No complete application/account audit. 依据:
入口与前提
- 协议
- browser ES-module SDK
- 认证
- unknown; existing caller-authorized integration only
- 价格是否查明
- unknown
- 配额是否查明
- unknown
resizeAndConvertImage
- Source-declared browser WebCodecs/bitmap fallback, VideoFrame and OffscreenCanvas; per-input checks required
- Package/dependencies and target browser version not installed or executed in this review
配方 browser-resizer-jpeg-content-fit · 修订 1
所需调用能力:
- browser
- sdk_runtime
运行前提:
- PROPOSED/not_run; source commit is publisher-provenance-declared, not independently proven equivalent to published package bytes.
- Use only an already authorized usable integration of the package/dependencies; no install or external code execution was performed.
- Caller must establish a compatible ImageDecoder or source-declared bitmap fallback, VideoFrame and OffscreenCanvas; per-input feature checks are mandatory.
- Caller supplies authorized inputBlob/inputMime, finite dimensions and byte/pixel limits; no private file is used by this review.
- Only use first-frame mode if the task explicitly permits dropping animation; otherwise return unknown.
- Resolve license, privacy/retention/recipient/cost constraints before execution.
- Do not treat fit:contain/cover as canonical fixed-canvas padding/cropping. Exact dimensions, white background or no-upscale requirements need a separately verified step.
使用步骤:
- Check the same input/browser with checkImageDecodeSupport; unsupported or unknown stops the proposed path.
- PROPOSED ONLY: const result = await resizeAndConvertImage({ input: inputBlob, inputMime, outputMime: 'image/jpeg', width: targetWidth, height: targetHeight, fit: 'contain', animation: 'first-frame', exif: 'drop', colorMetadata: 'canvas-sdr' });
- Caller explicitly saves/downloads result.blob to its own output artifact. Omit the README upload example; no upload, download or save was performed here.
- Independently decode actual output; compare geometry, media type, alpha/color/rotation and task constraints, bind actual bytes/SHA.
- 输入约定
- Authorized Blob/ArrayBuffer/Uint8Array accepted by the declared interface; actual image decoder support and finite byte/pixel limits require checking. Requested width/height are content bounds for contain, not guaranteed output canvas dimensions.
- 输出约定
- Proposed still JPEG bytes/Blob and metadata. The selected source computes content dimensions, may request enlargement and does not itself establish canonical exact canvas, padding or center crop. All actual output and full dependency behavior remain untested. PNG is not a declared output route. JPEG/WebP Canvas does not promise source ICC/HDR preservation.
- 成功检查
- Independently decode actual Blob bytes, check actual media type/width/height and requested geometry against the input; do not trust returned metadata alone. Record actual output byte count/SHA. Hard private-data, cost, exact canvas, padding, color or no-upscale unknowns prevent task acceptance.
- 失败与回退
- Return unknown/unmet conditions and use the original same-hard-condition alternatives. Do not install, upload, run another package or silently drop animation.
适用证据
browser-100-package · 静态源码检查
- 原文定位
- package.json $.name, $.version, $.type, $.exports; declared build commit
- 来源版本
- source:82480db8659b45bedece10a299510458caab0bc6;npm1.0.0-provenance-declared
- 内容摘要
- fa8621fa866c2e21826b73426c26dedb2abcf7933ed012a3dce8252292e0582b
- 采集时间
- 2026-11-02T07:39:24.6709676+00:00
Fixed source package manifest declares version1.0.0 and ES module exports. Registry publish/SLSA subject SHA512 agrees with exact npm metadata and SLSA declares this commit. Sigstore signatures, certificate/log verification, package byte/source/build equivalence and usable installation were not independently established.
覆盖条件:invocation_mode=sdk
browser-100-entry · 静态源码检查
- 原文定位
- src/index.ts L52, L145-165, L219-310, L380-438
- 来源版本
- source:82480db8659b45bedece10a299510458caab0bc6;npm1.0.0-provenance-declared
- 内容摘要
- df0c856a26363150c518c50827e116e5fdda384dda8453a9fcaf1eca32fd17ca
- 采集时间
- 2026-11-02T07:39:24.9100734+00:00
Browser SDK exports inspection/feature checks and resizeAndConvertImage. Declared output union is AVIF/JPEG/WebP. Still conversion obtains source frame dimensions, computes content size, calls an external resize dependency and returns encoded bytes/Blob. JPEG uses Canvas. Animated preservation is a separate WebP path; first-frame must be explicit. No browser task was run.
覆盖条件:operation=image_delivery; invocation_mode=sdk; execution_location=local; output_format=jpeg
browser-100-frame · 静态源码检查
- 原文定位
- src/frame-utils.ts L121-168, L197-208
- 来源版本
- source:82480db8659b45bedece10a299510458caab0bc6;npm1.0.0-provenance-declared
- 内容摘要
- 62986cbda2bc2776515adfb25f79ed04ad13030a46589b7ef6682c8c987730a0
- 采集时间
- 2026-11-02T07:39:25.1116940+00:00
resolveTargetSize uses min ratio for contain, max for cover, exact width/height only for fill. Content dimensions are forwarded to a dependency. The Canvas uses actual frame dimensions and draws at0,0, then checks returned MIME/magic. This is not canonical exact-canvas contain/cover padding/cropping or no-upscale. No actual output was produced.
覆盖条件:operation=image_delivery; output_format=jpeg
结构化配方与步骤连接
未知,仍缺条件。只核对公开声明;本站未执行此任务,不据接口兼容推断任务成功。
- 配方固定引用
- cap-d9679964fdc1fea1f8c14b55@2/browser-resizer-source-82480db8/browser-resizer-jpeg-content-fit@1
- 整链声明费用上限(货币最小单位)
- 未知
步骤 browser-content-fit-jpeg
固定名片与调用方式 · source:82480db8659b45bedece10a299510458caab0bc6;npm1.0.0-provenance-declared · browser-resizer-jpeg-content-fit 修订 1
- 调用方式 / 方法
- sdk / 未知或不适用
- 公开入口
- resizeAndConvertImage
- 调用方工具
- browser, sdk_runtime
- 需要安装
- 未知
- 认证
- 未知
- 可用地区
- 未知
- 执行位置 / 接收方
- local / 未知
- 上传 / 留存
- 未知 / 未知
- 声明费用
- 未知
- 输入格式 / 语义 / 大小
- 未知 / authorized image Blob/buffer, actual decoder and byte/pixel limits unknown / 未知 bytes
- 输出格式 / 语义 / 大小
- jpeg / proposed JPEG content-resize result; source fit names do not establish canonical fixed-canvas geometry / 未知 bytes
- 输出取回
- file / client_owned_output
- 成功检查(尚未执行)
- output_schema=Independently decode actual JPEG Blob bytes; check real media type, width/height and geometry against authorized input and task.; output_contains=Bind actual output bytes/SHA to task. Check color/alpha/rotation and requested padding/crop/no-upscale; source parameter names and returned metadata are insufficient.; human_confirmation=Confirm existing authorized compatible integration, per-input feature checks, license/privacy/cost and explicit permission for first-frame extraction if animated. No source or image processing was executed by this review.
- 失败备选(尚未采用)
- return_unknown:canonical_geometry_or_runtime_unverified
- 同版本证据
- browser-100-package, browser-100-entry, browser-100-frame
仍缺条件或存在冲突(没有入队)
- steps.browser-content-fit-jpeg.invocation.installation:installation_unknown · 未知,仍缺条件
- steps.browser-content-fit-jpeg.input:io_contract_unknown · 未知,仍缺条件
- steps.browser-content-fit-jpeg.output:io_contract_unknown · 未知,仍缺条件
- steps.browser-content-fit-jpeg.invocation.authentication:authorization_unknown · 未知,仍缺条件
- steps.browser-content-fit-jpeg.invocation.regions:region_unknown · 未知,仍缺条件
- steps.browser-content-fit-jpeg.invocation.recipient:recipient_unknown · 未知,仍缺条件
- steps.browser-content-fit-jpeg.invocation.upload_required:upload_unknown · 未知,仍缺条件
- steps.browser-content-fit-jpeg.invocation.retains_data:retention_unknown · 未知,仍缺条件
- steps.browser-content-fit-jpeg.invocation.cost:cost_unknown · 未知,仍缺条件
- steps.browser-content-fit-jpeg.policy.maximum_cost_minor:cost_limit_unknown · 未知,仍缺条件
完整结构、字段、单位、编码、版本、场景策略与备选引用
{
"contract": {
"anchor": {
"card_id": "cap-d9679964fdc1fea1f8c14b55",
"card_version": 2,
"profile_id": "browser-resizer-source-82480db8",
"component_version": "source:82480db8659b45bedece10a299510458caab0bc6;npm1.0.0-provenance-declared",
"recipe_id": "browser-resizer-jpeg-content-fit",
"recipe_revision": 1
},
"steps": [
{
"step_id": "browser-content-fit-jpeg",
"reference": {
"card_id": "cap-d9679964fdc1fea1f8c14b55",
"card_version": 2,
"profile_id": "browser-resizer-source-82480db8",
"component_version": "source:82480db8659b45bedece10a299510458caab0bc6;npm1.0.0-provenance-declared",
"recipe_id": "browser-resizer-jpeg-content-fit",
"recipe_revision": 1
},
"invocation": {
"mode": "sdk",
"entry": "resizeAndConvertImage",
"method": null,
"caller_tools": [
"browser",
"sdk_runtime"
],
"installation_required": null,
"authentication": null,
"regions": null,
"execution_location": "local",
"recipient": null,
"upload_required": null,
"retains_data": null,
"accepts_private_data": null,
"cost": {
"maximum_minor": null,
"currency": null,
"basis": null
}
},
"input": {
"format": null,
"schema_id": null,
"semantics": "authorized image Blob/buffer, actual decoder and byte/pixel limits unknown",
"version": null,
"encoding": "binary",
"maximum_bytes": null,
"fields_complete": false,
"allow_additional_fields": null,
"fields": []
},
"output": {
"format": "jpeg",
"schema_id": null,
"semantics": "proposed JPEG content-resize result; source fit names do not establish canonical fixed-canvas geometry",
"version": null,
"encoding": "binary",
"maximum_bytes": null,
"fields_complete": false,
"allow_additional_fields": null,
"fields": [],
"image": {
"width": null,
"height": null,
"fit": null,
"crop_anchor": null,
"padding_color": null,
"allow_upscale": null,
"transparency": null,
"color_space": null,
"orientation": null
}
},
"retrieval": {
"mode": "file",
"locator": "client_owned_output"
},
"success_checks": [
{
"kind": "output_schema",
"expected": "Independently decode actual JPEG Blob bytes; check real media type, width/height and geometry against authorized input and task."
},
{
"kind": "output_contains",
"expected": "Bind actual output bytes/SHA to task. Check color/alpha/rotation and requested padding/crop/no-upscale; source parameter names and returned metadata are insufficient."
},
{
"kind": "human_confirmation",
"expected": "Confirm existing authorized compatible integration, per-input feature checks, license/privacy/cost and explicit permission for first-frame extraction if animated. No source or image processing was executed by this review."
}
],
"alternatives": [
{
"mode": "return_unknown",
"reason_code": "canonical_geometry_or_runtime_unverified",
"reference": null
}
],
"evidence_refs": [
"browser-100-package",
"browser-100-entry",
"browser-100-frame"
]
}
],
"links": [],
"policy": {
"data_class": "public",
"local_only": true,
"allow_upload": false,
"allow_retention": false,
"allowed_recipients": [
"self"
],
"region": null,
"available_tools": [
"browser",
"sdk_runtime"
],
"authorization_kinds": [],
"allow_installation": false,
"maximum_cost_minor": null,
"currency": null
}
},
"assessment": {
"state": "unknown",
"execution_state": "not_executed_by_validator",
"declared_maximum_cost_minor": null,
"currency": null,
"links": [],
"gaps": [
{
"gap_id": "recipe-gap-5289d20033540dd2a1cca0a9",
"code": "installation_unknown",
"state": "unknown",
"reference": {
"card_id": "cap-d9679964fdc1fea1f8c14b55",
"card_version": 2,
"profile_id": "browser-resizer-source-82480db8",
"component_version": "source:82480db8659b45bedece10a299510458caab0bc6;npm1.0.0-provenance-declared",
"recipe_id": "browser-resizer-jpeg-content-fit",
"recipe_revision": 1
},
"path": "steps.browser-content-fit-jpeg.invocation.installation"
},
{
"gap_id": "recipe-gap-5655dd265635b509283cd344",
"code": "io_contract_unknown",
"state": "unknown",
"reference": {
"card_id": "cap-d9679964fdc1fea1f8c14b55",
"card_version": 2,
"profile_id": "browser-resizer-source-82480db8",
"component_version": "source:82480db8659b45bedece10a299510458caab0bc6;npm1.0.0-provenance-declared",
"recipe_id": "browser-resizer-jpeg-content-fit",
"recipe_revision": 1
},
"path": "steps.browser-content-fit-jpeg.input"
},
{
"gap_id": "recipe-gap-14a51bf2fa4bd087bcaf2d0b",
"code": "io_contract_unknown",
"state": "unknown",
"reference": {
"card_id": "cap-d9679964fdc1fea1f8c14b55",
"card_version": 2,
"profile_id": "browser-resizer-source-82480db8",
"component_version": "source:82480db8659b45bedece10a299510458caab0bc6;npm1.0.0-provenance-declared",
"recipe_id": "browser-resizer-jpeg-content-fit",
"recipe_revision": 1
},
"path": "steps.browser-content-fit-jpeg.output"
},
{
"gap_id": "recipe-gap-569d5d1bc2548bdba2207f48",
"code": "authorization_unknown",
"state": "unknown",
"reference": {
"card_id": "cap-d9679964fdc1fea1f8c14b55",
"card_version": 2,
"profile_id": "browser-resizer-source-82480db8",
"component_version": "source:82480db8659b45bedece10a299510458caab0bc6;npm1.0.0-provenance-declared",
"recipe_id": "browser-resizer-jpeg-content-fit",
"recipe_revision": 1
},
"path": "steps.browser-content-fit-jpeg.invocation.authentication"
},
{
"gap_id": "recipe-gap-3ecdbc3ca8a2609e699523e6",
"code": "region_unknown",
"state": "unknown",
"reference": {
"card_id": "cap-d9679964fdc1fea1f8c14b55",
"card_version": 2,
"profile_id": "browser-resizer-source-82480db8",
"component_version": "source:82480db8659b45bedece10a299510458caab0bc6;npm1.0.0-provenance-declared",
"recipe_id": "browser-resizer-jpeg-content-fit",
"recipe_revision": 1
},
"path": "steps.browser-content-fit-jpeg.invocation.regions"
},
{
"gap_id": "recipe-gap-7a2a71c713e2e8d0ae20db58",
"code": "recipient_unknown",
"state": "unknown",
"reference": {
"card_id": "cap-d9679964fdc1fea1f8c14b55",
"card_version": 2,
"profile_id": "browser-resizer-source-82480db8",
"component_version": "source:82480db8659b45bedece10a299510458caab0bc6;npm1.0.0-provenance-declared",
"recipe_id": "browser-resizer-jpeg-content-fit",
"recipe_revision": 1
},
"path": "steps.browser-content-fit-jpeg.invocation.recipient"
},
{
"gap_id": "recipe-gap-e0ac0c5d71a3d0331b87e696",
"code": "upload_unknown",
"state": "unknown",
"reference": {
"card_id": "cap-d9679964fdc1fea1f8c14b55",
"card_version": 2,
"profile_id": "browser-resizer-source-82480db8",
"component_version": "source:82480db8659b45bedece10a299510458caab0bc6;npm1.0.0-provenance-declared",
"recipe_id": "browser-resizer-jpeg-content-fit",
"recipe_revision": 1
},
"path": "steps.browser-content-fit-jpeg.invocation.upload_required"
},
{
"gap_id": "recipe-gap-46fbc2b304fa14d8b0fa20e0",
"code": "retention_unknown",
"state": "unknown",
"reference": {
"card_id": "cap-d9679964fdc1fea1f8c14b55",
"card_version": 2,
"profile_id": "browser-resizer-source-82480db8",
"component_version": "source:82480db8659b45bedece10a299510458caab0bc6;npm1.0.0-provenance-declared",
"recipe_id": "browser-resizer-jpeg-content-fit",
"recipe_revision": 1
},
"path": "steps.browser-content-fit-jpeg.invocation.retains_data"
},
{
"gap_id": "recipe-gap-53e05ed94b170b8dba060e75",
"code": "cost_unknown",
"state": "unknown",
"reference": {
"card_id": "cap-d9679964fdc1fea1f8c14b55",
"card_version": 2,
"profile_id": "browser-resizer-source-82480db8",
"component_version": "source:82480db8659b45bedece10a299510458caab0bc6;npm1.0.0-provenance-declared",
"recipe_id": "browser-resizer-jpeg-content-fit",
"recipe_revision": 1
},
"path": "steps.browser-content-fit-jpeg.invocation.cost"
},
{
"gap_id": "recipe-gap-1d8e256069b36de54104abc5",
"code": "cost_limit_unknown",
"state": "unknown",
"reference": {
"card_id": "cap-d9679964fdc1fea1f8c14b55",
"card_version": 2,
"profile_id": "browser-resizer-source-82480db8",
"component_version": "source:82480db8659b45bedece10a299510458caab0bc6;npm1.0.0-provenance-declared",
"recipe_id": "browser-resizer-jpeg-content-fit",
"recipe_revision": 1
},
"path": "steps.browser-content-fit-jpeg.policy.maximum_cost_minor"
}
]
}
}