Documentation
¶
Overview ¶
Package thumbkit helps an app draw thumbnails (filex 0.50 and later): the answer's encoding, and a card of lines in the look filex's own archive and text thumbnails have - what an app that lists a file's contents (an archive kind filex does not read, a package, a playlist) wants to draw.
pluginkit.Run(&pluginkit.Plugin{
Manifest: manifest,
Thumbnail: func(in *wire.ThumbnailInput) (*wire.ThumbnailOutput, error) {
src, err := pluginkit.ThumbnailSource(in)
if err != nil {
return nil, err
}
defer src.Close()
names, err := listMyFormat(src)
if err != nil {
return nil, err // filex asks the next handler
}
return thumbkit.PNG(thumbkit.ListCard("MYFMT · 12 files", names, 0))
},
})
It is plain Go (image, image/png and the 7x13 bitmap face of golang.org/x/image), so it works the same off-wasm, in a test.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.