#hostr #nostr #dev #embedded #images #decentralized #p2p #girl #loli #plutohardess
nostr:note15q4rvst0cd25aq4phtm5lmmy8qfqnnx89vp4c5yvw3psxcspzdwq7dcyjj
#uploading first 10 #pics from directory in ascending order
find /path/to/dir/ | sort | tail -n +2 | head -n 10 | while read f; do name=$(basename $f | perl -pe "s/\.\S+$/.html/"); ./hostr-image-upload-2.sh $f $name; done
uploading directory of pics
find /path/to/pics/ | tail -n +2 | while read f; do name=$(basename $f | perl -pe "s/\.\S+$/.html/"); ./hostr-image-upload-2.sh $f $name; done
initially you see base64 image embedded in note, its just 40 KiB in size
that is replaced on the fly with larger image from image host (2 MiB). did you even notice the replacement? its surprisingly small quality difference between these two images if you don't pay much attention.
improved loading (no more blinking)
here are some decentralized tools built on nostr etc.
found file @ wss://nos.lol/ , nip-93.html | #nip-93 | 1700928703
found file @ wss://nos.lol/ , nostr-tool-test.mjs | #nostr-tool-test | 1700928661
found file @ wss://nos.lol/ , nostr-req.html | #nostr-req | 1700928583
found file @ wss://nos.lol/ , nitter-view.html | #nitter-view | 1700928558
found file @ wss://nos.lol/ , hostr-image-upload-2.sh | #hostr-image-upload | 1700925226
found file @ wss://nos.lol/ , hostr-image-upload.sh | #hostr-image-upload | 1700866933
found file @ wss://nos.lol/ , web.csv.gz | 1700684962
found file @ wss://nos.lol/ , webcsv | 1700684913
found file @ wss://nos.lol/ , filepublish.html | #filepublish | 1699805343
found file @ wss://nos.lol/ , fileloader.html | #fileloader | 1699805328
found file @ wss://nos.lol/ , search.html | #search #webcsv | 1700929123
#fileloader #nostr #dev