software, alternative format is generated too: either JPEG (if JPEG XL
contains losslessly transcoded JPEG), or PNG (leaving off the alpha channel).
-If image file has corresponding .txt, then it will be included as a
-preformatted text on HTML page.
+If image file has corresponding .txt/.html, then it will be included on
+HTML page.
-All images are sorted my modification date and grouped by pages,
-linking them together. If directory contains ".txt", then it will be
-included on the first page as a preformatted text.
+All images are sorted my modification date and grouped by pages, linking
+them together. If directory contains ".txt"/".html", then it will be
+included on the first page.
Following external utilities are called: djxl, jxlinfo, exiftool,
pamtopng, pnmscale, pngcrush, advpng, webpinfo, dwebp, cwebp.
cat ${img}.txt >> $dst
echo "</pre>" >> $dst
}
+ [[ -r ${img}.html ]] && cat ${img}.html >> $dst
echo "<hr/>" >> $dst
if [[ $img:e = jxl ]] ; then
echo "<pre>" >> $dst
</head>
<body>
EOF
- [[ $p -eq 1 ]] && [[ -r .txt ]] && {
- echo "<pre>" >> $dst
- cat .txt >> $dst
- echo "</pre>" >> $dst
+ [[ $p -eq 1 ]] && {
+ [[ -r .txt ]] && {
+ echo "<pre>" >> $dst
+ cat .txt >> $dst
+ echo "</pre>" >> $dst
+ }
+ [[ -r .html ]] && cat .html >> $dst
}
[[ $p -eq 1 ]] ||
echo "<a href=\"$(( $p - 1 )).page.html\"><<<</a>" >> $dst