ImageFile
ImageFile is inherited from File with additional methods for working with image files.
ImageFile is generated when a DataChain is created from storage, using type="image" param:
ImageFile
Image
Bases: DataModel
A data model representing metadata for an image file.
Attributes:
-
width(int) โThe width of the image in pixels. Defaults to -1 if unknown.
-
height(int) โThe height of the image in pixels. Defaults to -1 if unknown.
-
format(str) โThe format of the image file (e.g., 'jpg', 'png'). Defaults to an empty string.