Support Gif in pages

This commit is contained in:
Christoph Hagen
2022-12-19 23:31:06 +01:00
parent 260de52533
commit 0eee845431
3 changed files with 41 additions and 20 deletions

View File

@ -368,7 +368,7 @@ final class GenerationResultsHandler {
return scaledSize
}
private func getImageSize(atPath path: String, source: String) -> NSSize? {
func getImageSize(atPath path: String, source: String) -> NSSize? {
if let size = imageSizeCache[path] {
return size
}
@ -469,9 +469,9 @@ final class GenerationResultsHandler {
add("Unwritable files", unwritableFiles) { "\($0.key) (required by \($0.value.source)): \($0.value.message)" }
add("Missing linked pages", missingLinkedPages) { "\($0.key) (linked by \($0.value))" }
add("Warnings", pageWarnings) { "\($0.source): \($0.message)" }
add("Generated files", generatedFiles) { $0 }
add("Drafts", draftPages) { $0 }
add("Empty pages", emptyPages) { "\($0.key) (from \($0.value))" }
add("Generated files", generatedFiles) { $0 }
let data = lines.joined(separator: "\n").data(using: .utf8)!
do {
try data.createFolderAndWrite(to: file)