mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Support image clips/gifs (#3583)
Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
@@ -347,6 +347,10 @@ func getResolution() (int, int) {
|
||||
return w, h
|
||||
}
|
||||
|
||||
func getBool() {
|
||||
return rand.Intn(2) == 0
|
||||
}
|
||||
|
||||
func getDate() time.Time {
|
||||
s := rand.Int63n(time.Now().Unix())
|
||||
|
||||
@@ -371,6 +375,7 @@ func generateImageFile(parentFolderID file.FolderID, path string) file.File {
|
||||
BaseFile: generateBaseFile(parentFolderID, path),
|
||||
Height: h,
|
||||
Width: w,
|
||||
Clip: getBool(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user