Update --thumbnail-quality argument, add documentation

This commit is contained in:
2023-01-29 11:24:34 -05:00
parent 9972e21fcc
commit 2e3d648796
16 changed files with 40 additions and 30 deletions

View File

@@ -62,7 +62,7 @@ export default {
path: "Path",
threads: "Number of threads",
memThrottle: "Total memory threshold in MiB for scan throttling",
thumbnailQuality: "Thumbnail quality, on a scale of 1.0 to 31.0, 1.0 being the best",
thumbnailQuality: "Thumbnail quality, on a scale of 2 to 32, 2 being the best",
thumbnailCount: "Number of thumbnails to generate. Set a value > 1 to create video previews, set to 0 to disable thumbnails.",
thumbnailSize: "Thumbnail size, in pixels",
contentSize: "Number of bytes to be extracted from text documents. Set to 0 to disable",

View File

@@ -111,7 +111,7 @@ class ScanOptions(BaseModel):
path: str
threads: int = 1
mem_throttle: int = 0
thumbnail_quality: float = 1.0
thumbnail_quality: int = 2
thumbnail_size: int = 500
thumbnail_count: int = 1
content_size: int = 32768