Table of Contents

Class ModelVersionImageFile

Namespace
CivitaiSharp.Core.Models
Assembly
CivitaiSharp.Core.dll

File properties of an image in a model version gallery including dimensions and perceptual hash.

public sealed record ModelVersionImageFile : IEquatable<ModelVersionImageFile>
Inheritance
ModelVersionImageFile
Implements
Inherited Members

Constructors

ModelVersionImageFile(string?, int?, int?, long?)

File properties of an image in a model version gallery including dimensions and perceptual hash.

public ModelVersionImageFile(string? Hash, int? Width, int? Height, long? Size)

Parameters

Hash string

The blurhash of the image for placeholder generation. Maps to JSON property "hash".

Width int?

The original width of the image in pixels. Maps to JSON property "width".

Height int?

The original height of the image in pixels. Maps to JSON property "height".

Size long?

The file size of the image in bytes. Maps to JSON property "size".

Properties

Hash

The blurhash of the image for placeholder generation. Maps to JSON property "hash".

[JsonPropertyName("hash")]
public string? Hash { get; init; }

Property Value

string

Height

The original height of the image in pixels. Maps to JSON property "height".

[JsonPropertyName("height")]
public int? Height { get; init; }

Property Value

int?

Size

The file size of the image in bytes. Maps to JSON property "size".

[JsonPropertyName("size")]
public long? Size { get; init; }

Property Value

long?

Width

The original width of the image in pixels. Maps to JSON property "width".

[JsonPropertyName("width")]
public int? Width { get; init; }

Property Value

int?