mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-10-30 09:37:55 +08:00
20 lines
347 B
Go
20 lines
347 B
Go
package plg_image_thumbnail
|
|
|
|
import (
|
|
"io"
|
|
)
|
|
|
|
var exeForJpeg ThumbnailExecutable = ThumbnailExecutable{
|
|
Name: "thumbnail_jpeg.bin",
|
|
Binary: &binaryThumbnailJpeg,
|
|
Checksum: checksumJpeg,
|
|
}
|
|
|
|
func init() {
|
|
exeForJpeg.Init()
|
|
}
|
|
|
|
func createThumbnailForJpeg(reader io.ReadCloser) (io.ReadCloser, error) {
|
|
return exeForJpeg.Execute(reader)
|
|
}
|