mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-10 17:22:36 +08:00
feat: add width and height fields to Asset schema
Add nullable integer fields 'width' and 'height' to the Asset schema in openapi.yaml. These expose original image dimensions in pixels for clients that need pre-thumbnail size info. Both fields are null for non-image assets or assets ingested before dimension extraction. Co-authored-by: Matt Miller <MillerMedia@users.noreply.github.com>
This commit is contained in:
parent
50677ac7d4
commit
8ceea24bdd
@ -6364,6 +6364,14 @@ components:
|
|||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
description: Size of the asset in bytes
|
description: Size of the asset in bytes
|
||||||
|
width:
|
||||||
|
type: integer
|
||||||
|
nullable: true
|
||||||
|
description: "Original image width in pixels. Null for non-image assets or assets ingested before dimension extraction."
|
||||||
|
height:
|
||||||
|
type: integer
|
||||||
|
nullable: true
|
||||||
|
description: "Original image height in pixels. Null for non-image assets or assets ingested before dimension extraction."
|
||||||
mime_type:
|
mime_type:
|
||||||
type: string
|
type: string
|
||||||
description: MIME type of the asset
|
description: MIME type of the asset
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user