Closed mfrasca closed 7 years ago
convert $i -geometry 192x192 -colors 16 -auto-orient png:- | base64 > $(basename $i .JPG).base64
I made an attempt, storing low res pics directly in the database. it's just hugely slower.
so in the database we only just keep the name of the pic, and we keep thumbnails in a thumbs
subdirectory next to the picture at high res.
not necessarily served by node, we can also configure an independent http service with nginx. maybe better, maybe just the same. but anyhow we have to put the high-res pics somewhere.