static

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!

/pictures/pixel/01.jpg

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.

gmi-web repository

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.

↰ all posts

/pictures/dividers/pixel-flowers.gif

talon.computer

CC BY-NC 4.0