mirror of
https://github.com/stashapp/stash.git
synced 2026-05-01 22:19:24 -05:00
a2e477e1a7
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
22 lines
382 B
Go
22 lines
382 B
Go
package file
|
|
|
|
// ImageFile is an extension of BaseFile to represent image files.
|
|
type ImageFile struct {
|
|
*BaseFile
|
|
Format string `json:"format"`
|
|
Width int `json:"width"`
|
|
Height int `json:"height"`
|
|
}
|
|
|
|
func (f ImageFile) GetWidth() int {
|
|
return f.Width
|
|
}
|
|
|
|
func (f ImageFile) GetHeight() int {
|
|
return f.Height
|
|
}
|
|
|
|
func (f ImageFile) GetFormat() string {
|
|
return f.Format
|
|
}
|