mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-19 17:30:17 +00:00
implement support for filesystem extractor mechanism
This commit is contained in:
@@ -96,7 +96,7 @@ fn draw(image: DynamicImage) -> Result<()> {
|
||||
|
||||
pub fn splash(context: Rc<SproutContext>, configuration: &SplashConfiguration) -> Result<()> {
|
||||
let image = context.stamp(&configuration.image);
|
||||
let image = read_file_contents(&image)?;
|
||||
let image = read_file_contents(context.root().loaded_image_path()?, &image)?;
|
||||
let image = ImageReader::with_format(Cursor::new(image), ImageFormat::Png)
|
||||
.decode()
|
||||
.context("failed to decode splash image")?;
|
||||
|
||||
Reference in New Issue
Block a user