Support image clips/gifs (#3583)

Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
yoshnopa
2023-05-17 01:30:51 +02:00
committed by GitHub
parent 0e199a525f
commit a2e477e1a7
62 changed files with 999 additions and 363 deletions

View File

@@ -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(),
}
}