src works better
This commit is contained in:
parent
db8977858e
commit
4974100717
16
llgal.org
16
llgal.org
@ -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_verse
|
#+begin_src
|
||||||
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_verse
|
#+end_src
|
||||||
** 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_verse
|
#+begin_src
|
||||||
# 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_verse
|
#+end_src
|
||||||
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_verse
|
#+begin_src
|
||||||
MVI: VID_20230120_124000.mp4 ---- Open movie VID_20230120_124000.mp4 ----
|
MVI: VID_20230120_124000.mp4 ---- Open movie VID_20230120_124000.mp4 ----
|
||||||
#+end_verse
|
#+end_src
|
||||||
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_verse
|
#+begin_src
|
||||||
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_verse
|
#+end_src
|
||||||
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=.
|
||||||
|
Loading…
Reference in New Issue
Block a user