Generate images in correct order, show failures

This commit is contained in:
Christoph Hagen
2025-02-16 16:00:28 +01:00
parent 6b6db702f1
commit ece39cb95e
3 changed files with 39 additions and 11 deletions

View File

@ -19,7 +19,7 @@ final class ImageGenerator {
settings.paths.imagesOutputFolderPath
}
private func needsToGenerate(_ version: ImageVersion) -> Bool {
func needsToGenerate(_ version: ImageVersion) -> Bool {
if version.wasPreviouslyGenerated {
return !exists(version)
}
@ -44,10 +44,6 @@ final class ImageGenerator {
// MARK: Image operations
func generate(version: ImageVersion) -> Bool {
guard needsToGenerate(version) else {
return true
}
if version.type == .avif {
if version.image.type == .gif {
// Skip GIFs, since they can't be converted by avifenc