diff --git a/bin/stitch/export-jpeg.go b/bin/stitch/export-jpeg.go index cbdaf2e..e3176e0 100644 --- a/bin/stitch/export-jpeg.go +++ b/bin/stitch/export-jpeg.go @@ -1,13 +1,19 @@ +// Copyright (c) 2023 David Vogel +// +// This software is released under the MIT License. +// https://opensource.org/licenses/MIT + package main import ( "fmt" + "image" "image/jpeg" "log" "os" ) -func exportJPEG(stitchedImage *StitchedImage, outputPath string) error { +func exportJPEG(stitchedImage image.Image, outputPath string) error { log.Printf("Creating output file %q.", outputPath) f, err := os.Create(outputPath) if err != nil { diff --git a/bin/stitch/export-png.go b/bin/stitch/export-png.go index 64ccb76..7323966 100644 --- a/bin/stitch/export-png.go +++ b/bin/stitch/export-png.go @@ -1,13 +1,19 @@ +// Copyright (c) 2023 David Vogel +// +// This software is released under the MIT License. +// https://opensource.org/licenses/MIT + package main import ( "fmt" + "image" "image/png" "log" "os" ) -func exportPNG(stitchedImage *StitchedImage, outputPath string) error { +func exportPNG(stitchedImage image.Image, outputPath string) error { log.Printf("Creating output file %q.", outputPath) f, err := os.Create(outputPath) if err != nil {