mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-03 13:11:46 +08:00
20 lines
340 B
Go
20 lines
340 B
Go
package plg_image_thumbnail
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
var exeForPng ThumbnailExecutable = ThumbnailExecutable{
|
|
Name: "thumbnail_png.bin",
|
|
Binary: &binaryThumbnailPng,
|
|
Checksum: checksumPng,
|
|
}
|
|
|
|
func init() {
|
|
exeForPng.Init()
|
|
}
|
|
|
|
func createThumbnailForPng(reader io.ReadCloser) (io.ReadCloser, error) {
|
|
return exeForPng.Execute(reader)
|
|
}
|