Hacker News new | past | comments | ask | show | jobs | submit login
PHPetite: A Single File Blog (phpetite.org)
6 points by bradley_taunt on Feb 18, 2021 | hide | past | favorite | 4 comments



This is a cool project. It looks really easy to use. I do have a question, though: One thing that this blog does to keep everything in a single file is that it base64-encodes all images. This encoding method will expand the data to take up roughly 133% of their original size. Is this worth it for the sake of having everything in a single file? Logos in particular are typically the same image that are included on every page of a site/blog, so there also wouldn't be a way to cache them apart from the rest of the page.


Agreed 100%.

I plan to include an option to disable this for those who want to include images separately / hosted by 3rd parties.


Just for reference, the project has been updated to allow users to disable this automatic conversion[0]

[0] https://phpetite.org/#2021-02-18-disable-image-to-base64-con...


Awesome. That was a quick turnaround. Thanks for the update (and the attribution)!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: