An image reader for Saga. Turns images in your content folder into Items, while still copying them to the output folder.
Include SagaImageReader in your Package.swift as usual:
let package = Package(
name: "MyWebsite",
dependencies: [
.package(url: "https://github.com/loopwerk/Saga", from: "1.0.0"),
.package(url: "https://github.com/loopwerk/SagaImageReader", from: "1.0.0"),
],
targets: [
.target(
name: "MyWebsite",
dependencies: ["Saga", "SagaImageReader"]),
]
)And then in your website you can import SagaImageReader and use imageReader.