feat: force image format

This commit is contained in:
rhunk
2023-08-25 03:14:09 +02:00
parent d0668b67d4
commit b004f92b9c
3 changed files with 29 additions and 1 deletions

View File

@ -123,6 +123,10 @@
"name": "Merge Overlays",
"description": "Combines the text and the media of a Snap into a single file"
},
"force_image_format": {
"name": "Force Image Format",
"description": "Forces images to be saved as a specific format"
},
"chat_download_context_menu": {
"name": "Chat Download Context Menu",
"description": "Allows to download messages from a conversation by long pressing them"

View File

@ -22,6 +22,9 @@ class DownloaderConfig : ConfigContainer() {
).apply { set(mutableListOf("append_hash", "append_date_time", "append_type", "append_username")) }
val allowDuplicate = boolean("allow_duplicate")
val mergeOverlays = boolean("merge_overlays") { addNotices(FeatureNotice.MAY_CAUSE_CRASHES) }
val forceImageFormat = unique("force_image_format", "jpg", "png", "webp") {
addFlags(ConfigFlag.NO_TRANSLATE)
}
val chatDownloadContextMenu = boolean("chat_download_context_menu")
val logging = multiple("logging", "started", "success", "progress", "failure").apply {
set(mutableListOf("started", "success"))