Add image previews to Joshuto
This commit is contained in:
parent
87293b7553
commit
e02aaf916c
2 changed files with 82 additions and 0 deletions
|
|
@ -196,6 +196,9 @@ handle_mime() {
|
|||
exit 1 ;;
|
||||
|
||||
## Image
|
||||
image/png | image/jpeg)
|
||||
## Display image
|
||||
exit 0 ;;
|
||||
image/*)
|
||||
## Preview as text conversion
|
||||
exiftool "${FILE_PATH}" && exit 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue