Show HN: I built PixSpeed to optimize website images for free
pixspeed.com
pixspeed.com
Long term, how do you intend to sustain the service if users become dependent on it and need to use it at scale?
How do you intend to maintain reliability and uptime for users whose business depends on access to the service?
What happens to users if/when you lose interest/ability to continue the project?
Don't get me wrong, you don't owe other people anything. On the other hand, free is often a way of avoiding really hard (and very interesting) engineering problems. People are the hard part of engineering.
My question is - why does this require a server?
Write it in something that compiles to LLVM / WASM and just make a static page. Infinitely scalable and just pay for the domain (and CDN provider if applicable) both likely nominal cost.
You might still be able to offset a portion of the compute by just figuring out the URLs of the images on the back-end, sending that list to the client, which would then download and do the optimization / resizing.
I look forward to your version of this service, also to be provided for free, right? And for your sake, hopefully you won't have people in the comments demanding that you completely redo your project in the special way that suits them.
Is what I was responding to. Wasn't criticizing the posted product implementation choices or demanding a rewrite. I see how it could be read that way, which is unfortunate.
Parent comment asked a number of questions that all suggested a server was a requirement. If scale becomes any issue for a service like this, there are approaches other than shutting down the service due to server / maintenance costs.
However, this is a double-edged sword: I might encounter sites with a large number of internal pages, which would complicate the resources needed to provide an efficient and sustainable service.
Another option I've thought about is offering a CDN service to directly serve optimized images, improving performance without the need for users to manually download and upload images. It does become more complex when charging users, as reliability, support, and infrastructure take on a much greater role.
You can make it easier for your users to read the policies if "policies" is a link to your policies. Also, I think you mean "moment to" instead of "momento."
It's a game changer to be able to copy photos directly from my Google Photos and not worry about it bloating my web pages.
[1] https://github.com/JosephNaberhaus/naberhausj.com/blob/05846...
Though I'm not sure many browsers actually use anything other than the largest image option...
I've debated encoding to AVIF as well, but that's such a painfully long process on a blog with somewhere around 8700 images.
[^1]: https://github.com/PowerSnail/PowerSnail.github.io/blob/mast...
{{ $image.Resize "600x webp q50" }}
[0] https://gohugo.io/content-management/image-processing/I switched to checking in the alternate image sizes and using a hugo image render hook to check for the existence of the alternative images to generate the appropriate srcset.
But now, I have a better workflow where I use the Image Converter plugin[^1] in Obsidian since that's how I'm composing my notes primarily. As I paste the images into the markdown file, it gets converted and embedded. There's also Clop[^2] for macOS which auto converts if I copy an image/file to my clipboard into my desired format and quality.
Quite happy with this setup for the time being.
[^1]: https://github.com/xRyul/obsidian-image-converter [^2]: https://lowtechguys.com/clop/
Or maybe I have just been clinging to notion too long?
FYI, your tester did miss an image that my site was including via in the style sheet.
especially when you cannot control what images users upload
Should say "Please take a moment to read them.