Example fix

This commit is contained in:
Kagami Hiiragi 2019-03-17 15:28:20 +03:00
parent f306d71481
commit f2e1859bcb
2 changed files with 2 additions and 3 deletions

View File

@ -43,7 +43,6 @@ import (
"github.com/Kagami/go-avif"
)
// This example shows the basic usage of the package.
func main() {
if len(os.Args) != 3 {
log.Fatalf("Usage: %s src.jpg dst.avif", os.Args[0])
@ -63,7 +62,7 @@ func main() {
img, _, err := image.Decode(src)
if err != nil {
log.Fatalf("Can't decode source image: %v", err)
log.Fatalf("Can't decode source file: %v", err)
}
err = avif.Encode(dst, img, nil)

View File

@ -29,7 +29,7 @@ func Example_basic() {
img, _, err := image.Decode(src)
if err != nil {
log.Fatalf("Can't decode source image: %v", err)
log.Fatalf("Can't decode source file: %v", err)
}
err = avif.Encode(dst, img, nil)