Ghini / ghini.web

web and geo interface to ghini.desktop database
GNU Affero General Public License v3.0
4 stars 1 forks source link

save full-res pics in public server area #13

Closed mfrasca closed 7 years ago

mfrasca commented 7 years ago

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.

mfrasca commented 7 years ago

convert $i -geometry 192x192 -colors 16 -auto-orient png:- | base64 > $(basename $i .JPG).base64

mfrasca commented 7 years ago

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.