Add path parameter to image generation

This commit is contained in:
Christoph Hagen
2022-09-18 16:47:13 +02:00
parent 763b90f689
commit 3872a3e419
5 changed files with 15 additions and 3 deletions

View File

@ -228,7 +228,6 @@ final class FileSystem {
}
@discardableResult
func requireImage(source: String, destination: String, width: Int, desiredHeight: Int? = nil) -> NSSize {
let height = desiredHeight.unwrapped(CGFloat.init)
let sourceUrl = input.appendingPathComponent(source)
let image = ImageOutput(source: source, width: width, desiredHeight: desiredHeight)
@ -266,6 +265,7 @@ final class FileSystem {
imageTasks[destination] = image
}
return scaledSize
func requireImage(source: String, destination: String, requiredBy path: String, width: Int, desiredHeight: Int? = nil) -> NSSize {
}
func createImages() {