Documentation ¶
Index ¶
- Variables
- func ConvertUgoira(ugoiraInfo *models.Ugoira, imagesFolderPath string, ...) error
- func DownloadMultipleUgoira(ugoiraArgs *UgoiraArgs, ugoiraOptions *UgoiraOptions, config *configs.Config, ...)
- func GetUgoiraFilePaths(ugoireFilePath, ugoiraUrl, outputFormat string) (string, string)
- func MapDelaysToFilename(ugoiraFramesJson models.UgoiraFramesJson) map[string]int64
- type UgoiraArgs
- type UgoiraFfmpegArgs
- type UgoiraOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var UGOIRA_ACCEPTED_EXT = []string{
".gif",
".apng",
".webp",
".webm",
".mp4",
}
Functions ¶
func ConvertUgoira ¶
func ConvertUgoira(ugoiraInfo *models.Ugoira, imagesFolderPath string, ugoiraFfmpeg *UgoiraFfmpegArgs) error
Converts the Ugoira to the desired output path using FFmpeg
func DownloadMultipleUgoira ¶
func DownloadMultipleUgoira(ugoiraArgs *UgoiraArgs, ugoiraOptions *UgoiraOptions, config *configs.Config, reqHandler httpfuncs.RequestHandler)
Downloads multiple Ugoira artworks and converts them based on the output format
func GetUgoiraFilePaths ¶
Returns the ugoira's zip file path and the ugoira's converted file path
func MapDelaysToFilename ¶
func MapDelaysToFilename(ugoiraFramesJson models.UgoiraFramesJson) map[string]int64
Map the Ugoira frame delays to their respective filenames
Types ¶
type UgoiraArgs ¶
type UgoiraFfmpegArgs ¶
type UgoiraFfmpegArgs struct {
// contains filtered or unexported fields
}
type UgoiraOptions ¶
UgoiraDlOptions is the struct that contains the configs for the processing of the ugoira images after downloading from Pixiv.
func (*UgoiraOptions) ValidateArgs ¶
func (u *UgoiraOptions) ValidateArgs() error
ValidateArgs validates the arguments of the ugoira process options.
Should be called after initialising the struct.
Click to show internal directories.
Click to hide internal directories.