I'm very sleepy
Conversation
Notices
-
waifu (waifu@mai.waifuism.life)'s status on Monday, 18-Nov-2024 02:42:11 JST waifu -
nyanide :nyancat_rainbow::nyancat_body::nyancat_face: (nyanide@lab.nyanide.com)'s status on Monday, 18-Nov-2024 02:42:10 JST nyanide :nyancat_rainbow::nyancat_body::nyancat_face: @waifu captain it's 11 am -
waifu (waifu@mai.waifuism.life)'s status on Monday, 18-Nov-2024 02:43:22 JST waifu @nyanide@lab.nyanide.com it's 2pm
-
waifu (waifu@mai.waifuism.life)'s status on Monday, 18-Nov-2024 02:53:24 JST waifu @ElDeadKennedy@shitposter.world I have to read it again, but I'm guessing it'd be fine writing the name of the artist in the filename right
-
DulceKennedy (eldeadkennedy@shitposter.world)'s status on Monday, 18-Nov-2024 02:53:24 JST DulceKennedy @waifu the filename is the alt text
#!/bin/bash
img_tags=""
for image in images/*; do
if [ -f "$image" ]; then
basename=$(basename "$image")
img_tags+="<img src=\"$image\" alt=\"$basename\">"
fi
done
cat template.html | sed "s#{{{GALLERY}}}#$img_tags#" > output.html -
waifu (waifu@mai.waifuism.life)'s status on Monday, 18-Nov-2024 02:53:25 JST waifu @ElDeadKennedy@shitposter.world yeah lol that's why I posted almost whatever, so someone would point me to a direction, I don't wanna use Hugo 😭
-
DulceKennedy (eldeadkennedy@shitposter.world)'s status on Monday, 18-Nov-2024 02:53:25 JST DulceKennedy @waifu but that is fixed we have the holy bash script -
DulceKennedy (eldeadkennedy@shitposter.world)'s status on Monday, 18-Nov-2024 02:53:26 JST DulceKennedy @waifu get up we have to work on the gallery -
DulceKennedy (eldeadkennedy@shitposter.world)'s status on Monday, 18-Nov-2024 02:53:26 JST DulceKennedy @waifu what is this chatgpt-looking template. we need better -
nyanide :nyancat_rainbow::nyancat_body::nyancat_face: (nyanide@lab.nyanide.com)'s status on Monday, 18-Nov-2024 02:53:48 JST nyanide :nyancat_rainbow::nyancat_body::nyancat_face: @ElDeadKennedy @waifu now would you be upset if I pushed a few hundred images to the gallery and made the single file for the entire gallery 3 mb large -
waifu (waifu@mai.waifuism.life)'s status on Monday, 18-Nov-2024 02:54:57 JST waifu @nyanide@lab.nyanide.com @ElDeadKennedy@shitposter.world only if you don't propose a solution
-
nyanide :nyancat_rainbow::nyancat_body::nyancat_face: (nyanide@lab.nyanide.com)'s status on Monday, 18-Nov-2024 02:56:35 JST nyanide :nyancat_rainbow::nyancat_body::nyancat_face: @waifu @ElDeadKennedy we should have a fixed set of images per page, so we don't have someone visiting the page loading 400 mb of pleroma tan. Should be trivial to rework the bash script to have them all split up -
tsoifan1997 (sysrq@lab.nyanide.com)'s status on Monday, 18-Nov-2024 03:10:05 JST tsoifan1997 @ElDeadKennedy @waifu
I'm gonna upload images with filenames consisting of Javascript code -
tsoifan1997 (sysrq@lab.nyanide.com)'s status on Monday, 18-Nov-2024 03:10:06 JST tsoifan1997 @ElDeadKennedy @waifu
>img_tags+="<img src=\"$image\" alt=\"$basename\">"
Huh this is giving me ideas... -
DulceKennedy (eldeadkennedy@shitposter.world)'s status on Monday, 18-Nov-2024 03:10:06 JST DulceKennedy @sysrq @waifu look i was expecting 30 images at max ok this is bad i wasn't expecting hundreds of images nyanide :nyancat_rainbow::nyancat_body::nyancat_face: repeated this. -
waifu (waifu@mai.waifuism.life)'s status on Monday, 18-Nov-2024 03:10:54 JST waifu @nyanide@lab.nyanide.com @ElDeadKennedy@shitposter.world brb loading 400mb of pleroma-tan ass in my ram
-
waifu (waifu@mai.waifuism.life)'s status on Monday, 18-Nov-2024 03:13:07 JST waifu @ElDeadKennedy@shitposter.world @sysrq@lab.nyanide.com I mean ofc it's gonna if i see anything weird, nyanide also has access to direct push but for now only us :clueless:
-
DulceKennedy (eldeadkennedy@shitposter.world)'s status on Monday, 18-Nov-2024 03:13:08 JST DulceKennedy @sysrq @waifu i mean it's gonna get rejected -
DulceKennedy (eldeadkennedy@shitposter.world)'s status on Monday, 18-Nov-2024 03:13:08 JST DulceKennedy @sysrq @waifu well that's up to waifu -
DulceKennedy (eldeadkennedy@shitposter.world)'s status on Monday, 18-Nov-2024 03:13:12 JST DulceKennedy @nyanide @waifu also we should generate thumbnails. maybe -
DulceKennedy (eldeadkennedy@shitposter.world)'s status on Monday, 18-Nov-2024 03:13:13 JST DulceKennedy @waifu @nyanide not a lot -
DulceKennedy (eldeadkennedy@shitposter.world)'s status on Monday, 18-Nov-2024 03:13:13 JST DulceKennedy @waifu @nyanide but wait how big will this gallery be i was expecting like 30 images at max -
waifu (waifu@mai.waifuism.life)'s status on Monday, 18-Nov-2024 03:13:14 JST waifu @ElDeadKennedy@shitposter.world @nyanide@lab.nyanide.com I guess on the long run it would be better to separate them but Idk how much work that is
-
DulceKennedy (eldeadkennedy@shitposter.world)'s status on Monday, 18-Nov-2024 03:13:15 JST DulceKennedy @waifu @nyanide do you want all the images on a single page or do you want to separate them -
waifu (waifu@mai.waifuism.life)'s status on Monday, 18-Nov-2024 03:13:44 JST waifu @ElDeadKennedy@shitposter.world @nyanide@lab.nyanide.com Yeah, using something like imgmagick?
-
DulceKennedy (eldeadkennedy@shitposter.world)'s status on Monday, 18-Nov-2024 03:44:30 JST DulceKennedy @nyanide @waifu also i need to change the thumbs_dir because i was using another structure and then i changed some things to follow your stru ah this is stupid let's go somewhere else -
nyanide :nyancat_rainbow::nyancat_body::nyancat_face: (nyanide@lab.nyanide.com)'s status on Monday, 18-Nov-2024 03:44:30 JST nyanide :nyancat_rainbow::nyancat_body::nyancat_face: @ElDeadKennedy @waifu you guys wanna head on an xmpp group or something to talk about this rather than have an extremely long fedi thread become the main discussion board for the contributors -
DulceKennedy (eldeadkennedy@shitposter.world)'s status on Monday, 18-Nov-2024 03:44:31 JST DulceKennedy @nyanide @waifu oh no i didn;t fuck anything it was just that i changed the folder and yeah it's working -
DulceKennedy (eldeadkennedy@shitposter.world)'s status on Monday, 18-Nov-2024 03:44:31 JST DulceKennedy @nyanide @waifu i did change something on the css -
DulceKennedy (eldeadkennedy@shitposter.world)'s status on Monday, 18-Nov-2024 03:44:32 JST DulceKennedy @waifu @nyanide ok so now with this you should get a thumbnail on the main page and then on click it opens the full image
#!/bin/bash
thumbs_dir="thumbs"
mkdir -p "$thumbs_dir"
img_tags=""
for image in assets/images/*; do
if [ -f "$image" ]; then
basename=$(basename "$image")
thumbnail_file="${thumbs_dir}/${basename}"
magick "$image" -resize 150x150^ "$thumbnail_file"
img_tags+="<a href=\"$image\" target=\"_blank\"><img src=\"$thumbnail_file\" alt=\"$basename\"></a>"
fi
done
cat template.html | sed "s#{{{GALLERY}}}#$img_tags#" > index.html -
DulceKennedy (eldeadkennedy@shitposter.world)'s status on Monday, 18-Nov-2024 03:44:32 JST DulceKennedy @waifu @nyanide wait i fucked something up here -
waifu (waifu@mai.waifuism.life)'s status on Monday, 18-Nov-2024 03:44:33 JST waifu -
waifu (waifu@mai.waifuism.life)'s status on Monday, 18-Nov-2024 03:44:34 JST waifu @ElDeadKennedy@shitposter.world @nyanide@lab.nyanide.com it's working, but yeah the more images the more it needs to load and stuff
-
DulceKennedy (eldeadkennedy@shitposter.world)'s status on Monday, 18-Nov-2024 03:44:34 JST DulceKennedy @waifu @nyanide ok i added thumbnails now give me all your pleroma-tan images to test this -
waifu (waifu@mai.waifuism.life)'s status on Monday, 18-Nov-2024 03:47:23 JST waifu @nyanide@lab.nyanide.com @ElDeadKennedy@shitposter.world lmao sure, there's also my mumble
-
nyanide :nyancat_rainbow::nyancat_body::nyancat_face: (nyanide@lab.nyanide.com)'s status on Monday, 18-Nov-2024 03:47:48 JST nyanide :nyancat_rainbow::nyancat_body::nyancat_face: @waifu @ElDeadKennedy i've got a sore throat so i can't talk using my terrible voice but i can still type, is waifuism.life the mumble server? -
DulceKennedy (eldeadkennedy@shitposter.world)'s status on Monday, 18-Nov-2024 03:50:21 JST DulceKennedy @nyanide @waifu hop on Steam -
nyanide :nyancat_rainbow::nyancat_body::nyancat_face: (nyanide@lab.nyanide.com)'s status on Monday, 18-Nov-2024 03:52:38 JST nyanide :nyancat_rainbow::nyancat_body::nyancat_face: @ElDeadKennedy @waifu :gaben:
-