mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-03 04:50:14 +08:00
feature (thumbnail): better thumbnail plugin
This commit is contained in:
10
server/plugin/plg_image_c/image_raw.go
Normal file
10
server/plugin/plg_image_c/image_raw.go
Normal file
@ -0,0 +1,10 @@
|
||||
package plg_image_c
|
||||
|
||||
// #include "image_raw.h"
|
||||
// #cgo LDFLAGS: -l:libjpeg.a -l:libraw.a -fopenmp -l:libstdc++.a -llcms2 -lm
|
||||
import "C"
|
||||
|
||||
func raw(input uintptr, output uintptr, size int) {
|
||||
C.raw_to_jpeg(C.int(input), C.int(output), C.int(size))
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user