Generate full-screen images
This commit is contained in:
@@ -314,7 +314,18 @@ final class GenerationResultsHandler {
|
||||
requireMultiVersionImage(source: source, destination: destination, requiredBy: path, width: configuration.pageImageWidth, desiredHeight: nil)
|
||||
}
|
||||
|
||||
@discardableResult
|
||||
func requireOriginalSizeImages(
|
||||
source: String,
|
||||
destination: String,
|
||||
requiredBy path: String) {
|
||||
_ = requireScaledMultiImage(
|
||||
source: source,
|
||||
destination: destination.insert("@full", beforeLast: "."),
|
||||
requiredBy: path,
|
||||
width: configuration.fullScreenImageWidth,
|
||||
desiredHeight: nil)
|
||||
}
|
||||
|
||||
private func requireScaledMultiImage(source: String, destination: String, requiredBy path: String, width: Int, desiredHeight: Int?) -> NSSize {
|
||||
let rawDestinationPath = destination.dropAfterLast(".")
|
||||
let avifPath = rawDestinationPath + ".avif"
|
||||
|
Reference in New Issue
Block a user