-
-
Notifications
You must be signed in to change notification settings - Fork 110
Closed
Description
file, err := os.Open("face.jpg")
if err != nil {
log.Fatalf("Error opening the file: %v", err)
}
defer file.Close()
// File to write to
nf, err := os.Create("trig.jpeg")
if err != nil {
log.Fatalf("Error writing the file: %s", err)
}
// Run Triangle algorithm
p := &triangle.Processor{
// Initialize struct variables
}
img := &triangle.Image{*p}
_, _,_, err = img.Draw(file, nf, func() {})
if err != nil {
log.Fatalf("Error creating triangles: %s", err)
}
I keep getting error: Error creating triangles: image: unknown format
Metadata
Metadata
Assignees
Labels
No labels