💾 Archived View for talon.computer › log › static captured on 2023-09-08 at 15:57:01. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
2023-08-17
I read more of the kiln manual and learned how to wire up static content into the build so now I can share photos of Pixel here!
I pulled this from my cloud files and then used mogrify(1) to compress and resize it like this:
mogrify -quality 50 -resize 20% public/pictures/pixel/01.jpg
which reduced the file size from 3.4M to 104K :)
The other small change I had to do was tell gmi-web I wanted to use <img> tags for .jpg/.png/.gif files.
A little note about backend plumbing, I put the public folder in .gitignore so I'm not saving that data in git. And after I've published I can delete the local public folder to save space and time on the next publish. The previously published files simply stay chillin' in the /srv folder of the RPI4.