X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=galgen.zsh;fp=galgen.zsh;h=8124fd8554016b2fa6adb7c8d77eb82b9d3a0077;hb=edb18216c001f4972000580c5863b14371996131;hp=55e24e84300dc39da2d62a4b82ec8a9bf5289421;hpb=0686fd9b275623babc009a7969a8d9173437acb1;p=galgen.git diff --git a/galgen.zsh b/galgen.zsh index 55e24e8..8124fd8 100755 --- a/galgen.zsh +++ b/galgen.zsh @@ -7,6 +7,15 @@ pagesize=${PAGESIZE:-100} ordering=${ORDERING:-Om} style=$STYLE +exifTagsOmit=( + ExifToolVersion + Directory + FileAccessDate + FileAttributes + FileInodeChangeDate + FilePermissions +) + djxl2ppm() { djxl $1 $1.ppm [[ -r ${1}-ec0.ppm ]] || return 0 @@ -69,9 +78,9 @@ EOF echo "" >> $dst [[ -r $img.preview.webp ]] || dwebp $img -ppm -o $img.ppm fi - echo "
" >> $dst
-    exiftool -a -u -g1 $img >> $dst
-    echo "
" >> $dst + echo "
" >> $dst + exiftool -escapeHTML -htmlFormat -groupHeadings \ + --${=${(j/ --/)exifTagsOmit}} $img >> $dst [[ -r $img.ppm ]] && { pnmscale -w 100 < $img.ppm > $img.ppm.ppm mv $img.ppm.ppm $img.ppm