mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-28 04:13:44 +00:00
Start work on rendering images with Go
This commit is contained in:
parent
24db38ba7e
commit
7f866b2b1f
2 changed files with 18 additions and 0 deletions
12
tools/cmd/icat/native.go
Normal file
12
tools/cmd/icat/native.go
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// License: GPLv3 Copyright: 2023, Kovid Goyal, <kovid at kovidgoyal.net>
|
||||
|
||||
package icat
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
var _ = fmt.Print
|
||||
|
||||
func render_image_with_go(imgd *image_data, src *opened_input) {
|
||||
}
|
||||
|
|
@ -251,6 +251,12 @@ func process_arg(arg input_arg) {
|
|||
send_output(&imgd)
|
||||
return
|
||||
}
|
||||
err = render_image_with_go(imgd, &f)
|
||||
if err != nil {
|
||||
report_error(arg.value, "Could not render image to RGB", err)
|
||||
return
|
||||
}
|
||||
send_output(&imgd)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue