mirror of
https://github.com/stashapp/stash.git
synced 2025-12-24 01:03:24 +01:00
Disable vips in Windows (#1767)
This commit is contained in:
parent
b14d5c5650
commit
2f664fe826
1 changed files with 3 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
"os/exec"
|
||||
"runtime"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
|
|
@ -56,7 +57,8 @@ func (e *ThumbnailEncoder) GetThumbnail(img *models.Image, maxSize int) ([]byte,
|
|||
return buf.Bytes(), nil
|
||||
}
|
||||
|
||||
if e.VipsPath != "" {
|
||||
// vips has issues loading files from stdin on Windows
|
||||
if e.VipsPath != "" && runtime.GOOS != "windows" {
|
||||
return e.getVipsThumbnail(buf, maxSize)
|
||||
} else {
|
||||
return e.getFFMPEGThumbnail(buf, format, maxSize, img.Path)
|
||||
|
|
|
|||
Loading…
Reference in a new issue