Add more file properties, organize storage, add video block
This commit is contained in:
@ -41,6 +41,14 @@ struct ImageVersion {
|
||||
var outputPath: String {
|
||||
image.outputPath(width: maximumWidth, height: maximumHeight, type: type)
|
||||
}
|
||||
|
||||
var wasPreviouslyGenerated: Bool {
|
||||
image.generatedImageVersions.contains(versionId)
|
||||
}
|
||||
|
||||
func wasNowGenerated() {
|
||||
image.generatedImageVersions.insert(versionId)
|
||||
}
|
||||
}
|
||||
|
||||
extension ImageVersion: Identifiable {
|
||||
|
Reference in New Issue
Block a user