Skip to content

Commit

Permalink
Update thumbnail-quality parameter in sist2-admin
Browse files Browse the repository at this point in the history
  • Loading branch information
simon987 committed May 20, 2023
1 parent 6108821 commit b3b3005
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sist2-admin/frontend/src/components/ScanOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<b-form-input type="number" min="1" v-model="options.threads" @change="update()"></b-form-input>

<label>{{ $t("scanOptions.thumbnailQuality") }}</label>
<b-form-input type="number" min="1" max="31" v-model="options.thumbnail_quality" @change="update()"></b-form-input>
<b-form-input type="number" min="0" max="100" v-model="options.thumbnail_quality" @change="update()"></b-form-input>

<label>{{ $t("scanOptions.thumbnailCount") }}</label>
<b-form-input type="number" min="0" max="1000" v-model="options.thumbnail_count" @change="update()"></b-form-input>
Expand Down
2 changes: 1 addition & 1 deletion sist2-admin/frontend/src/i18n/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,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 2 to 32, 2 being the best",
thumbnailQuality: "Thumbnail quality, on a scale of 0 to 100, 100 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",
Expand Down
2 changes: 1 addition & 1 deletion sist2-admin/sist2_admin/sist2.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def args(self):
class ScanOptions(BaseModel):
path: str
threads: int = 1
thumbnail_quality: int = 2
thumbnail_quality: int = 50
thumbnail_size: int = 552
thumbnail_count: int = 1
content_size: int = 32768
Expand Down

0 comments on commit b3b3005

Please sign in to comment.