use verse for pre fields

This commit is contained in:
Florian Obser 2023-01-29 11:48:41 +01:00
parent 13add8d58a
commit db8977858e
1 changed files with 8 additions and 8 deletions

View File

@ -53,7 +53,7 @@ bit with the command line flags to figure out what I need and then
setup a =~[[file:llgal/llgalrc.txt][/.llgal/llgal.rc]]= file. setup a =~[[file:llgal/llgalrc.txt][/.llgal/llgal.rc]]= file.
These are the things I configured: These are the things I configured:
#+begin_export ascii #+begin_verse
thumbnails_per_row = 3 thumbnails_per_row = 3
thumbnail_height_max = 240 thumbnail_height_max = 240
thumbnail_width_max = 240 thumbnail_width_max = 240
@ -67,7 +67,7 @@ exclude = "^js$"
sort_criteria = "revtime" sort_criteria = "revtime"
recursive = 1 recursive = 1
link_subgalleries = 1 link_subgalleries = 1
#+end_export #+end_verse
** Video thumbnails ** Video thumbnails
llgal does not create thumbnails for video files (yet) so I had to llgal does not create thumbnails for video files (yet) so I had to
hack around that a bit. hack around that a bit.
@ -83,13 +83,13 @@ We grab one frame (=-vframes 1=), one second into the video (=-ss
(=-vf "scale=240:-1"=). We store the thumbnail in the ~.llgal~ (=-vf "scale=240:-1"=). We store the thumbnail in the ~.llgal~
sub-directory, where ~llgal~ stores its own thumbnails and scaled sub-directory, where ~llgal~ stores its own thumbnails and scaled
images. The config file has this: images. The config file has this:
#+begin_export ascii #+begin_verse
# Additional prefix of user-provided scaled images # Additional prefix of user-provided scaled images
# user_scaled_image_filenameprefix = "my" # user_scaled_image_filenameprefix = "my"
# Additional prefix of user-provided thumbnails # Additional prefix of user-provided thumbnails
# user_thumbnail_image_filenameprefix = "my" # user_thumbnail_image_filenameprefix = "my"
#+end_export #+end_verse
I have not worked out what that does, but I am using the "my" prefix I have not worked out what that does, but I am using the "my" prefix
because of this. because of this.
@ -99,14 +99,14 @@ albums: ~llgal --gc~. This creates =.llgal/captions= in all albums.
It creates lines for all photos and videos that we can edit, for It creates lines for all photos and videos that we can edit, for
videos it looks like this: videos it looks like this:
#+begin_export ascii #+begin_verse
MVI: VID_20230120_124000.mp4 ---- Open movie VID_20230120_124000.mp4 ---- MVI: VID_20230120_124000.mp4 ---- Open movie VID_20230120_124000.mp4 ----
#+end_export #+end_verse
And we can change it to this to show the thumbnail[fn::I am using an And we can change it to this to show the thumbnail[fn::I am using an
emacs macro for that. YMMV.]: emacs macro for that. YMMV.]:
#+begin_export ascii #+begin_verse
MVI: VID_20230120_124000.mp4 ---- <img src=".llgal/my_thump_VID_20230120_124000.mp4.jpg" /><br /> Open movie ---- MVI: VID_20230120_124000.mp4 ---- <img src=".llgal/my_thump_VID_20230120_124000.mp4.jpg" /><br /> Open movie ----
#+end_export #+end_verse
I am using the same trick to have thumbnails for the top-level [[https://img.sha256.net/index.html][album I am using the same trick to have thumbnails for the top-level [[https://img.sha256.net/index.html][album
overview]]. The only difference is that it is a =DIR= line instead of overview]]. The only difference is that it is a =DIR= line instead of
=MVI=. =MVI=.