sashag,
@sashag@chaosfem.tw avatar

I should set up sort of a gallery page with my outfits. Whenever I take a picture of an outfit that I think is a "complete look", I save a copy in a dedicated folder on my Dropbox.

But lately paging through those has become cumbersome. So a web based archive might be an option.

But all self-hosted gallery systems I looked at are so fucking overfraught with features that the installation alone is a major endeavor.

And I probably would be the only user. I don't think someone else would be interested in that shit.

gdinwiddie,
@gdinwiddie@mastodon.social avatar

@sashag
I created this script to dump a bunch of images in a directory within docroot of Apache and create a page of thumbnails linked to the images.

script in reply

gdinwiddie,
@gdinwiddie@mastodon.social avatar

@sashag

Create a page of thumbnails linking to fullsize

Preface with description (html or txt) if found

Often used to create README.html by redircting the output

common renaming

for UC in *.JPG
do
mv "$UC" "${UC%JPG}jpg"
done
for UC in *.jpeg
do
mv "$UC" "${UC%jpeg}jpg"
done
for FILE in *.jpg *.png
do

this complains if there are no spaces in the filename

mv "$FILE" echo $FILE | tr " " "_"
done

rm thumbnails/-thumb.jpg
rm thumbnails/
-thumb.png
mkdir thumbnails
#(1/2)

gdinwiddie,
@gdinwiddie@mastodon.social avatar

@sashag

2/2

if [ -f description.html ]
then
echo "<div>"
cat description.html
echo "</div>"
elif [ -f description.txt ]
then
echo "<pre>"
cat description.txt
echo "</pre>"
fi

for ORIG in *.jpg .png
do
if [ -f $ORIG ]
then
THUMB="thumbnails/${ORIG%.
}-thumb.jpg"
convert -auto-orient -resize 240 "$ORIG" "$THUMB"
identify -format "<a href=""$ORIG""><img src=""$THUMB"" width="%w" height="%h" alt=""$ORIG"" title=""$ORIG"" /></a>\n" "$THUMB"
"$THUMB"
fi
done

sashag,
@sashag@chaosfem.tw avatar

@gdinwiddie Thank you!

gdinwiddie,
@gdinwiddie@mastodon.social avatar

@sashag
I use it to create pages like https://alberg30.org/pictures/contributed/SummerCruise2003/ out of photo dumps people send me.

sashag,
@sashag@chaosfem.tw avatar

@gdinwiddie That's great! Because everything beyond overviews of thumbnails and detail views using additional data requires manually adding this (meta) data, which I don't want to do.

gdinwiddie,
@gdinwiddie@mastodon.social avatar

@sashag
BTW, it requires ImageMagick

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • ethstaker
  • DreamBathrooms
  • mdbf
  • InstantRegret
  • ngwrru68w68
  • magazineikmin
  • everett
  • thenastyranch
  • Youngstown
  • slotface
  • cisconetworking
  • kavyap
  • osvaldo12
  • modclub
  • megavids
  • GTA5RPClips
  • khanakhh
  • tacticalgear
  • Durango
  • rosin
  • normalnudes
  • Leos
  • provamag3
  • tester
  • cubers
  • anitta
  • JUstTest
  • lostlight
  • All magazines