frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Auto-optimize and upload images with AI alt text

https://github.com/csarigoz/image-optimization
1•cagrisarigoz•1d ago
I've been manually optimizing images for web projects by resizing, converting formats, uploading to S3, and writing alt text.

Built this project to automate the whole pipeline, and wanted to open source it for the community.

What it does:

- Analyzes images and picks optimal format (WebP/JPEG/PNG) based on content

- Batch processes from CSV or local files

- Generates alt text via AltText.ai API

- Uploads to S3 with CloudFront URLs

- Includes REST API for integration

The format detection compares output sizes across formats, rather than relying on file extension rules. Saves significant bandwidth - saw 40-60% size reductions on most images.

Also built an enhanced pre-commit script that auto-fixes linting issues and updates vulnerable dependencies.

Setup:

Clone repo, run setup script, add AWS creds. No external dependencies beyond AWS and optional AltText.ai API. Includes example files.

Would appreciate feedback on the format selection algorithm or suggestions for additional optimizations.

A Weekly Planning Ritual That Works

https://candost.blog/a-weekly-planning-ritual-that-works/
1•mooreds•1m ago•0 comments

Linux Improvements Boost AMD Ryzen Threadripper 7000 Series Performance

https://www.phoronix.com/review/amd-threadripper-7000-2025
1•rbanffy•1m ago•0 comments

Ask HN: How AI/MCPs can be useful?

1•CafeRacer•2m ago•0 comments

Microsandbox: Virtual Machines that feel and perform like containers

https://github.com/microsandbox/microsandbox
1•makeboss•5m ago•0 comments

Qualcomm's Centriq 2400 and the Falkor Architecture

https://chipsandcheese.com/p/qualcomms-centriq-2400-and-the-falkor
1•rbanffy•7m ago•0 comments

OBS Studio 31.1 Bringing Multitrack Video Support to Linux

https://www.phoronix.com/news/OBS-Studio-31.1-Beta
2•mikece•10m ago•0 comments

The Dawn of Infinite Code

https://docs.google.com/document/d/1Dm9UrhgaRMu_DjOz5KluO7ibOsPaUVQgwnC5-ccw9_g/mobilebasic
1•awaxman11•10m ago•0 comments

Why Dropping MS Office for ODF Is Your Next Power Move

https://medium.com/@dotnetmike/why-dropping-ms-office-for-odf-is-your-next-power-move-645b4a7b9a6d
2•mikece•10m ago•0 comments

China's economy runs on Uyghur forced labour

https://www.thebureauinvestigates.com/stories/2025-05-29/chinas-economy-runs-on-uyghur-forced-labour
2•Improvement•12m ago•0 comments

Next gaming dice could be shaped like a dragon or armadillo

https://arstechnica.com/science/2025/05/your-next-gaming-dice-could-be-shaped-like-a-dragon-or-armadillo/
1•sohkamyung•16m ago•0 comments

Ways People Are Using AI in 2025 (It's Not What You Expect)

https://mellernotes.substack.com/p/the-10-ways-people-are-really-using
1•wmeller•17m ago•0 comments

Online Historical Encyclopaedia of Programming Languages

https://hopl.info/
4•uticus•21m ago•0 comments

TIO is a family of online interpreters

https://tio.run/#
1•uticus•22m ago•0 comments

Quimera: LLMs based tool to discover smart contract exploits

https://github.com/gustavo-grieco/quimera
1•wslh•22m ago•0 comments

OpenAI Can Stop Pretending

https://www.theatlantic.com/technology/archive/2025/05/openai-nonprofit-pbc/682979/
2•littlexsparkee•23m ago•1 comments

Data watchdog put cops on naughty step for lost CCTV footage

https://www.theregister.com/2025/05/30/uk_data_watchdog_found_police/
1•rntn•24m ago•0 comments

On The Campaign Trail, Elon Musk Juggled Drugs and Family Drama

https://www.nytimes.com/2025/05/30/us/elon-musk-drugs-children-trump.html
3•danso•25m ago•1 comments

Concatenative Language

https://concatenative.org/wiki/view/Concatenative%20language
2•uticus•25m ago•0 comments

Surface-Stable Fractal Dithering

https://runevision.com/tech/dither3d/
1•luismedel•26m ago•0 comments

Types and other techniques as an accessibility tool for the ADHD brain [video]

https://www.youtube.com/watch?v=DG5gLPFKcbk
1•todsacerdoti•27m ago•0 comments

Coexisting with digital Entities: a new Perspective

https://victoranastasiu.medium.com/how-to-coexist-with-digital-entities-ea4086fb7a2
1•victorasao•29m ago•0 comments

For Some Recent Graduates, the A.I. Job Apocalypse May Be Here

https://www.nytimes.com/2025/05/30/technology/ai-jobs-college-graduates.html
2•gk1•30m ago•2 comments

Show HN: Git-Add–Interactive with Enhancements

https://github.com/cwarden/git-add-interactive
3•xn•30m ago•0 comments

Pmccabe – McCabe-style complexity and line counting for C and C++

https://gitlab.com/pmccabe/pmccabe
2•LorenDB•30m ago•0 comments

Thinking of Leaving the Industry (2008)

https://web.archive.org/web/20170628151926/http://discuss.joelonsoftware.com/default.asp?joel.3.718003.14
2•netol•30m ago•1 comments

Using Rust Back End to Serve an SPA

https://nguyenhuythanh.com/posts/rust-backend-spa/
8•thanhnguyen2187•31m ago•2 comments

Simons Collaboration on the Global Brain

https://www.youtube.com/watch?v=fZ-E0liJTHU
2•gsf_emergency•31m ago•0 comments

Radeon Software for Linux Dropping AMD's Proprietary OpenGL/Vulkan Drivers

https://www.phoronix.com/news/Radeon-Software-Drop-Prop-GL-VK
8•mikece•32m ago•0 comments

Researchers Are Slowly Finding Ways to Stem the Tide of PFAS Contamination

https://hackaday.com/2025/05/29/researchers-are-slowly-finding-ways-to-stem-the-tide-of-pfas-contamination/
1•sohkamyung•32m ago•0 comments

Functional Programming in Bash: Harnessing the Power of Simplicity

https://scalastic.io/en/bash-functional-programming/
2•amram_art•34m ago•0 comments